/* ==========================================================
   کدینگو – استایل سایت عمومی (راست‌به‌چپ)
   رنگ‌ها از لوگو: سرمه‌ای + سبز
   ========================================================== */

@font-face { font-family: "Vazirmatn"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/Vazirmatn-FD-Regular.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/Vazirmatn-FD-Medium.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/Vazirmatn-FD-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-weight: 800; font-style: normal; font-display: swap;
  src: url("../fonts/Vazirmatn-FD-ExtraBold.woff2") format("woff2"); }

:root {
  --navy: #071f45;
  --navy-2: #0d2e63;
  --green: #067d5b;          /* رنگ اصلی دکمه‌ها و پیوندها (کنتراست کافی روی سفید) */
  --green-dark: #05674b;
  --green-bright: #07ad7e;   /* رنگ لوگو؛ فقط برای تزئین و روی زمینهٔ سرمه‌ای */
  --mint: #e7f6ef;
  --paper: #f4f7fb;
  --ink: #0e1b33;
  --muted: #52627d;
  --line: #dde5ef;
  --danger: #b42318;
  --amber: #e8a200;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(7, 31, 69, .06), 0 14px 34px -14px rgba(7, 31, 69, .22);
  --font: "Vazirmatn", Tahoma, "Segoe UI", system-ui, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.95;
  color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--green-bright); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--navy); color: #fff; padding: 8px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; text-decoration: none; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }

/* ---------- دکمه‌ها ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: 12px; border: 1.5px solid transparent;
  font-weight: 600; line-height: 1.6; text-decoration: none !important; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-accent { background: var(--green-bright); color: var(--navy); }
.btn-accent:hover { background: #09c18d; }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: 6px 16px; font-size: .92rem; }
.btn-lg { padding: 13px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- هدر (سرمه‌ای) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: var(--navy); border-bottom: 1px solid rgba(255, 255, 255, .08);
}
/* راست‌به‌چپ: لوگو سمت راست، منو بلافاصله کنار لوگو، دکمهٔ ثبت درخواست در انتهای چپ */
.header-in { height: 100%; display: flex; align-items: center; justify-content: flex-start; gap: 24px; }
.brand { flex: none; }
.brand img { height: 46px; width: auto; }
.nav { flex: 1; display: flex; align-items: center; gap: 28px; margin-inline-start: clamp(8px, 3vw, 40px); }
.nav .nav-cta { margin-inline-start: auto; }
.nav a:not(.btn) { position: relative; color: #d5def0; font-weight: 500; font-size: .96rem; padding-block: 6px; }
.nav a:not(.btn)::after {            /* خط سبز زیر آیتم؛ از راست رشد می‌کند */
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--green-bright); transform: scaleX(0); transform-origin: right center; transition: transform .25s ease;
}
.nav a:not(.btn):hover, .nav a:not(.btn):focus-visible { color: #fff; text-decoration: none; }
.nav a:not(.btn):hover::after, .nav a:not(.btn):focus-visible::after { transform: scaleX(1); }
.nav a.btn { color: var(--navy); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; color: #fff; border-radius: 8px; }

/* ==========================================================
   هیرو
   ========================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(36px, 5vw, 64px) clamp(44px, 5vw, 72px);
}
/* زمینه: نور ملایم سبز و آبی + محو شدن به رنگ بخش بعدی */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(45% 60% at 18% 45%, rgba(7, 173, 126, .12), transparent 70%),
    radial-gradient(40% 50% at 92% 0%, rgba(60, 120, 230, .09), transparent 70%),
    linear-gradient(180deg, #fff 0%, #fff 55%, var(--paper) 100%);
}
/* شبکهٔ خطی بسیار کم‌رنگ */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(7, 31, 69, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 31, 69, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 75%);
          mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 75%);
}

.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(32px, 5vw, 64px); align-items: center; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px;
  padding: 5px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 8px 20px -14px rgba(7, 31, 69, .35);
  font-size: .86rem; font-weight: 600; color: var(--navy-2); line-height: 1.8;
}
.hero-eyebrow i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green-bright); flex: none;
  animation: ping 2s ease-out infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(7, 173, 126, .55); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(7, 173, 126, 0); }
}

.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.5; font-weight: 800; color: var(--navy);
  max-width: 17em; letter-spacing: -.01em;
}
.hero h1 .hl {
  color: var(--green); padding-inline: 4px; border-radius: 6px;
  background: linear-gradient(transparent 66%, rgba(7, 173, 126, .18) 66%, rgba(7, 173, 126, .18) 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 36em; margin-top: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-actions .btn-primary { box-shadow: 0 14px 28px -14px rgba(6, 125, 91, .7); }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-points li {
  display: flex; align-items: center; gap: 7px; padding: 4px 14px 4px 12px;
  background: rgba(255, 255, 255, .85); border: 1px solid var(--line); border-radius: 999px;
  color: #34445f; font-size: .9rem; line-height: 1.8;
}
.hero-points .ico { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--mint); color: var(--green); flex: none; }

/* بخش تصویری: هالهٔ سبز + مدار چرخان */
.hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero-visual::before {
  content: ""; position: absolute; width: min(560px, 110%); aspect-ratio: 1; border-radius: 50%;
  top: 50%; left: 50%; transform: translate(-50%, -52%); z-index: 0;
  background: radial-gradient(circle, rgba(7, 173, 126, .20) 0%, rgba(7, 173, 126, .07) 42%, transparent 68%);
}
.hero-visual::after {
  content: ""; position: absolute; width: min(470px, 96%); aspect-ratio: 1; border-radius: 50%;
  top: 50%; left: 50%; z-index: 0; border: 1.5px dashed rgba(7, 31, 69, .13);
  transform: translate(-50%, -52%); animation: orbit 80s linear infinite;
}
@keyframes orbit { to { transform: translate(-50%, -52%) rotate(360deg); } }
.phone-note { position: relative; z-index: 1; margin-top: 20px; font-size: .86rem; color: var(--muted); }

/* صحنه: گوشی (راست) + ربات (چپ) */
.hero-stage {
  --bw: clamp(140px, 14vw, 178px);   /* عرض ربات */
  --gap: 18px;
  position: relative; z-index: 1; width: 100%;
  display: flex; align-items: flex-end; justify-content: center; gap: var(--gap);
}

.phone {
  position: relative; z-index: 1; width: min(310px, 100%); background: var(--navy); border-radius: 40px;
  padding: 10px; box-shadow: 0 30px 60px -24px rgba(7, 31, 69, .55);
}
.phone-top {
  display: flex; align-items: center; gap: 10px; background: #fff; padding: 12px 16px;
  border-radius: 30px 30px 0 0; border-bottom: 1px solid var(--line);
}
.phone-top .avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex: none; }
.phone-title { display: flex; flex-direction: column; line-height: 1.4; }
.phone-title strong { font-size: .92rem; color: var(--navy); }
.phone-title small { font-size: .74rem; color: var(--muted); }
.chat-screen {
  height: 430px; background: #e8eef6; border-radius: 0 0 30px 30px; padding: 14px 12px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden;
}
.msg {
  max-width: 84%; padding: 8px 13px; border-radius: 16px; font-size: .88rem; line-height: 1.8;
  animation: pop .28s ease-out both; white-space: pre-line;
}
.msg.bot { align-self: flex-start; background: #fff; border-top-right-radius: 4px; box-shadow: 0 1px 1px rgba(7,31,69,.06); }
.msg.user { align-self: flex-end; background: #cdeedd; color: var(--navy); border-top-left-radius: 4px; }
.msg.ok { border: 1.5px solid var(--green-bright); }
.kbd { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.kbd span {
  border: 1px solid #b9e3d1; background: #f1fbf6; color: var(--green); border-radius: 999px;
  padding: 1px 12px; font-size: .78rem; font-weight: 600; transition: background-color .2s, color .2s;
}
.kbd span.tapped { background: var(--green); border-color: var(--green); color: #fff; }
.typing { align-self: flex-start; background: #fff; border-radius: 16px; border-top-right-radius: 4px; padding: 12px 14px; display: flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa9c2; animation: blink 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

/* ---------- ربات ---------- */
.hero-bot {
  position: relative; z-index: 2; flex: none; width: var(--bw);
  display: flex; flex-direction: column; align-items: center; margin-bottom: 6px;
}
.bot-svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 22px 26px rgba(7, 31, 69, .22)); }

/* اتصال سیگنال از آنتن ربات به گوشی */
.bot-beam {
  position: absolute; pointer-events: none; overflow: visible; height: 140px;
  left: calc(var(--bw) * .5);
  top: calc(var(--bw) * .06 - 140px);
  width: calc(var(--bw) * .5 + var(--gap) + 12px);
}
.beam-base { fill: none; stroke: rgba(7, 31, 69, .16); stroke-width: 2; stroke-dasharray: 3 6; }
.beam-flow {
  fill: none; stroke: var(--green-bright); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 6 34; opacity: .35; animation: beam-out 2.4s linear infinite;
  transition: opacity .3s;
}
.bot-node {
  position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--green-bright);
  left: calc(var(--bw) + var(--gap) + 7px);
  top: calc(var(--bw) * .06 - 145px);
  box-shadow: 0 0 0 4px rgba(7, 173, 126, .18);
}
@keyframes beam-out { to { stroke-dashoffset: -40; } }
@keyframes beam-in  { to { stroke-dashoffset: 40; } }

/* وضعیت */
.bot-status {
  margin-top: 10px; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line); box-shadow: 0 8px 18px -12px rgba(7, 31, 69, .4);
  font-size: .76rem; font-weight: 600; color: var(--navy-2); line-height: 1.8;
}
.bot-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green-bright); flex: none; transition: background-color .25s; }

/* اجزای SVG */
.rb-float { animation: rb-float 4.2s ease-in-out infinite; }
.rb-shadow { fill: rgba(7, 31, 69, .22); transform-box: fill-box; transform-origin: center; animation: rb-shadow 4.2s ease-in-out infinite; }
.rb-jet { transform-box: fill-box; transform-origin: center; animation: rb-jet 1.4s ease-in-out infinite; }
.rb-eyes { filter: drop-shadow(0 0 4px rgba(111, 245, 200, .8)); transition: transform .35s ease, opacity .25s ease; }
.rb-eye { transform-box: fill-box; transform-origin: center; animation: rb-blink 5.5s infinite; transition: transform .3s ease; }
.rb-code { opacity: 0; transform-box: fill-box; transform-origin: center; filter: drop-shadow(0 0 4px rgba(111, 245, 200, .8)); transition: opacity .25s ease; }
.rb-mouth { transform-box: fill-box; transform-origin: center; transition: opacity .25s ease; }
.rb-core-ring { transform-box: fill-box; transform-origin: center; animation: rb-spin 6s linear infinite; }
.rb-antenna-ring { transform-box: fill-box; transform-origin: center; opacity: 0; }
.rb-arm-l { transform-box: view-box; transform-origin: 47px 150px; animation: rb-sway 4.2s ease-in-out infinite; }
.rb-arm-r { transform-box: view-box; transform-origin: 153px 150px; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); }

@keyframes rb-float  { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes rb-shadow { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(.8); opacity: .55; } }
@keyframes rb-jet    { 0%, 100% { opacity: .55; transform: scaleX(1); } 50% { opacity: 1; transform: scaleX(1.18); } }
@keyframes rb-blink  { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes rb-spin   { to { transform: rotate(360deg); } }
@keyframes rb-sway   { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(6deg); } }
@keyframes rb-ring   { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.8); opacity: 0; } }
@keyframes rb-code   { 0%, 100% { opacity: .55; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes rb-talk   { from { transform: scaleY(1); } to { transform: scaleY(2); } }
@keyframes rb-flash  { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* حالت ۱: دریافت پیام */
.hero-bot[data-state="listen"] .rb-eyes { transform: translateX(5px); }
.hero-bot[data-state="listen"] .rb-antenna-ring { animation: rb-ring 1s ease-out infinite; }
.hero-bot[data-state="listen"] .rb-arm-r { transform: rotate(-18deg); }
.hero-bot[data-state="listen"] .beam-flow { opacity: 1; animation: beam-in .9s linear infinite; }
.hero-bot[data-state="listen"] .bot-status i { background: #3b82f6; }

/* حالت ۲: تحلیل */
.hero-bot[data-state="think"] .rb-eyes,
.hero-bot[data-state="think"] .rb-mouth { opacity: 0; }
.hero-bot[data-state="think"] .rb-code { opacity: 1; animation: rb-code 1s ease-in-out infinite; }
.hero-bot[data-state="think"] .rb-core-ring { animation-duration: .9s; }
.hero-bot[data-state="think"] .rb-antenna { animation: rb-flash .5s ease-in-out infinite; }
.hero-bot[data-state="think"] .beam-flow { opacity: .15; }
.hero-bot[data-state="think"] .bot-status i { background: var(--amber); animation: rb-flash .6s ease-in-out infinite; }

/* حالت ۳: ارسال پاسخ */
.hero-bot[data-state="reply"] .rb-eye { animation: none; transform: scaleY(.45); }
.hero-bot[data-state="reply"] .rb-mouth { animation: rb-talk .18s ease-in-out infinite alternate; }
.hero-bot[data-state="reply"] .rb-arm-r { transform: rotate(-35deg); }
.hero-bot[data-state="reply"] .rb-antenna-ring { animation: rb-ring 1s ease-out infinite; }
.hero-bot[data-state="reply"] .beam-flow { opacity: 1; animation: beam-out .9s linear infinite; }

/* ---------- بخش‌ها ---------- */
.section { padding-block: clamp(60px, 8vw, 104px); }
.section-paper { background: var(--paper); }
.section-mint { background: var(--mint); }
.section-navy { background: var(--navy); color: #fff; }
.section-head { max-width: 40rem; margin-bottom: 44px; }
.section-head h2, .order-info h2, .faq-wrap h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.6; color: var(--navy); }
.section-head p { color: var(--muted); margin-top: 8px; }
.section-navy .section-head h2 { color: #fff; }
.section-navy .section-head p { color: #b9c6df; }
.empty { color: var(--muted); padding: 32px 0; }

/* ==========================================================
   خدمات – کارت‌های شماره‌دار
   ========================================================== */
#services {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(36px, 4.5vw, 56px) clamp(52px, 6vw, 80px);
}
#services::before {                 /* نور ملایم پس‌زمینه */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 100% 0%, rgba(7, 173, 126, .08), transparent 70%),
    radial-gradient(40% 60% at 0% 100%, rgba(60, 120, 230, .07), transparent 70%);
}
#services .section-head { margin-bottom: 32px; }
#services + .section { padding-top: clamp(52px, 6vw, 80px); }

.service-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: svc; }
.service {
  position: relative; overflow: hidden; counter-increment: svc;
  display: flex; flex-direction: column; gap: 16px;
  padding: 24px 22px 22px; background: #fff;
  border: 1px solid #e3e9f2; border-radius: 20px;
  box-shadow: 0 1px 2px rgba(7, 31, 69, .04), 0 10px 26px -20px rgba(7, 31, 69, .25);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, border-color .35s ease;
}
/* خط سبز بالای کارت هنگام هاور (از راست) */
.service::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--green-bright), #3c78e6);
  transform: scaleX(0); transform-origin: right center; transition: transform .45s ease;
}
/* شمارهٔ کم‌رنگ گوشهٔ کارت */
.service::after {
  content: counter(svc, persian); position: absolute; top: 12px; inset-inline-end: 20px;
  font-size: 2.8rem; font-weight: 800; line-height: 1; color: rgba(7, 31, 69, .06);
  transition: color .35s ease;
}
.service:hover {
  transform: translateY(-6px); border-color: #cfe3da;
  box-shadow: 0 1px 2px rgba(7, 31, 69, .05), 0 26px 50px -24px rgba(7, 31, 69, .38);
}
.service:hover::before { transform: scaleX(1); }
.service:hover::after { color: rgba(7, 173, 126, .14); }

.service-ico {
  position: relative; z-index: 1; flex: none; width: 54px; height: 54px; border-radius: 16px;
  display: grid; place-items: center; color: var(--green-bright);
  background: linear-gradient(145deg, var(--navy-2), var(--navy));
  box-shadow: 0 12px 22px -12px rgba(7, 31, 69, .7), inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: background .35s ease, color .35s ease, transform .35s cubic-bezier(.3, 1.4, .5, 1);
}
.service-ico .ico { width: 26px; height: 26px; filter: drop-shadow(0 0 6px rgba(7, 173, 126, .45)); }
.service:hover .service-ico {
  background: linear-gradient(145deg, #0bc48f, var(--green));
  color: #fff; transform: rotate(-6deg) scale(1.06);
}
.service h3 { position: relative; font-size: 1.04rem; font-weight: 800; color: var(--navy); line-height: 1.7; }
.service p { position: relative; color: var(--muted); font-size: .9rem; line-height: 1.9; margin-top: 4px; }

/* کارت آخر (ربات سفارشی): کارت شاخص سرمه‌ای */
.service:last-child {
  border-color: transparent;
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(7, 173, 126, .35), transparent 70%),
    radial-gradient(60% 60% at 0% 100%, rgba(60, 120, 230, .3), transparent 70%),
    linear-gradient(160deg, var(--navy-2), var(--navy));
  box-shadow: 0 20px 40px -22px rgba(7, 31, 69, .7);
}
.service:last-child::after { color: rgba(255, 255, 255, .08); }
.service:last-child:hover::after { color: rgba(255, 255, 255, .14); }
.service:last-child h3 { color: #fff; }
.service:last-child p { color: #c3cfe4; }
.service:last-child .service-ico {
  background: linear-gradient(145deg, #0bc48f, var(--green)); color: #fff;
  box-shadow: 0 12px 24px -10px rgba(7, 173, 126, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
}

@media (prefers-reduced-motion: reduce) {
  .service, .service::before, .service-ico { transition: none; }
  .service:hover, .service:hover .service-ico { transform: none; }
}

/* ==========================================================
   نمونه‌کارها – رنگ محیطی از خودِ لوگو
   ========================================================== */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip {
  flex: none; border: 1.5px solid var(--line); background: #fff; color: var(--ink); padding: 5px 18px;
  border-radius: 999px; font-size: .92rem; font-weight: 500; white-space: nowrap;
  transition: border-color .2s, background-color .2s, color .2s, box-shadow .2s;
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 8px 18px -10px rgba(7, 31, 69, .6); }

.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }

.work {
  position: relative; display: flex; flex-direction: column; background: #fff;
  border: 1px solid #e3e9f2; border-radius: 22px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(7, 31, 69, .05), 0 10px 30px -18px rgba(7, 31, 69, .22);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease;
}
.work[hidden], .work.is-over { display: none; }
.work.is-reveal { animation: work-in .55s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes work-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.work:hover {
  transform: translateY(-6px);
  box-shadow: 0 1px 2px rgba(7, 31, 69, .06), 0 30px 60px -24px rgba(7, 31, 69, .42);
}

.work-thumb {
  position: relative; height: 188px; flex: none; overflow: hidden; isolation: isolate;
  display: grid; place-items: center; background: var(--navy);
}
.work-thumb::before {
  content: ""; position: absolute; inset: -40px; z-index: -2;
  background-image: var(--art,
    radial-gradient(60% 70% at 80% 20%, rgba(7, 173, 126, .75), transparent 70%),
    radial-gradient(70% 80% at 15% 90%, rgba(60, 120, 230, .65), transparent 70%));
  background-size: cover; background-position: center;
  filter: blur(36px) saturate(1.6);
  transform: scale(1.15);
  transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}
.work-thumb::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.4px) 0 0 / 16px 16px,
    radial-gradient(80% 60% at 50% 0%, rgba(255, 255, 255, .18), transparent 70%),
    linear-gradient(180deg, rgba(7, 31, 69, .28) 0%, rgba(7, 31, 69, .62) 100%);
}
.work:hover .work-thumb::before { transform: scale(1.32); }

.work-img, .work-glyph {
  position: relative; z-index: 1; width: 96px; height: 96px; border-radius: 50%; flex: none;
  border: 3px solid rgba(255, 255, 255, .92);
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, .14),
    0 0 0 9px rgba(255, 255, 255, .12),
    0 24px 44px -14px rgba(0, 0, 0, .55);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s ease;
}
.work-img { object-fit: cover; background: #fff; }
.work-glyph {
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .08));
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.work-glyph svg { width: 40px; height: 40px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .25)); }
.work:hover .work-img, .work:hover .work-glyph {
  transform: translateY(-4px) scale(1.04);
  box-shadow:
    0 0 0 10px rgba(255, 255, 255, .16),
    0 0 0 11px rgba(255, 255, 255, .14),
    0 30px 50px -14px rgba(0, 0, 0, .6);
}

.work-cat {
  position: absolute; top: 16px; inset-inline-end: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 3px 12px; border-radius: 999px; line-height: 1.8;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28);
  color: #fff; font-size: .78rem; font-weight: 600;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.work-cat::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: var(--green-bright); box-shadow: 0 0 0 3px rgba(7, 173, 126, .3);
}

.work-body { padding: 24px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.work h3 { font-size: 1.14rem; font-weight: 800; color: var(--navy); line-height: 1.7; }
.work-body > p { color: var(--muted); font-size: .93rem; line-height: 1.95; flex: 1; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tags li {
  background: var(--paper); border: 1px solid #e6ecf4; border-radius: 999px;
  padding: 0 11px; font-size: .78rem; line-height: 1.95; color: #34445f;
}

.work-link {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: 18px -24px -24px; padding: 15px 24px;
  border-top: 1px solid #edf1f6;
  font-weight: 700; font-size: .92rem; color: var(--navy);
  transition: background-color .25s, color .25s;
}
.work-link .ico {
  width: 32px; height: 32px; padding: 8px; border-radius: 50%;
  background: var(--paper); color: var(--navy); box-sizing: border-box;
  transition: background-color .25s, color .25s, transform .25s ease;
}
.work-link:hover { text-decoration: none; color: var(--green-dark); background: #f8fbfd; }
.work-link:hover .ico { background: var(--green); color: #fff; transform: translate(-2px, -2px); }

/* دکمهٔ «نمایش بیشتر» */
.works-more { position: relative; display: flex; justify-content: center; margin-top: 32px; }
.works-more[hidden] { display: none; }
.works-more::before {
  content: ""; position: absolute; inset-inline: 0; top: 50%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}
.btn-more {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 999px; background: #fff;
  border: 1.5px solid var(--line); color: var(--navy); font-weight: 700; font-size: .95rem;
  box-shadow: 0 10px 24px -16px rgba(7, 31, 69, .45);
  transition: background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn-more:hover { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 16px 30px -16px rgba(7, 31, 69, .6); }
.btn-more .ico { transition: transform .3s ease; }
.btn-more[aria-expanded="true"] .ico { transform: rotate(180deg); }

@media (prefers-reduced-motion: reduce) {
  .work, .work-thumb::before, .work-img, .work-glyph, .work-link .ico { transition: none; }
  .work:hover, .work:hover .work-thumb::before, .work:hover .work-img, .work:hover .work-glyph, .work-link:hover .ico { transform: none; }
}

/* ==========================================================
   مراحل کار – ربات مرحله‌به‌مرحله پردازش می‌کند
   ========================================================== */
#process {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(52px, 6vw, 84px);
}
#process::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(45% 60% at 100% 0%, rgba(7, 173, 126, .16), transparent 70%),
    radial-gradient(45% 60% at 0% 100%, rgba(60, 120, 230, .16), transparent 70%);
}
#process .section-head { margin-bottom: 36px; }

.flow { position: relative; }
.flow.is-armed:not(.is-vertical) { padding-top: 72px; }   /* جا برای ربات بالای دایره‌ها */

/* خط مسیر و پر شدن آن */
.flow-track {
  position: absolute; z-index: 0; pointer-events: none; border-radius: 2px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .26) 0 6px, transparent 6px 12px);
}
.flow.is-vertical .flow-track { background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .26) 0 6px, transparent 6px 12px); }
.flow-fill {
  position: absolute; inset: 0; border-radius: 2px;
  background: linear-gradient(90deg, #3c78e6, var(--green-bright));
  box-shadow: 0 0 12px rgba(7, 173, 126, .7);
  transform: scaleX(0);
  transition: transform .95s cubic-bezier(.65, 0, .35, 1);
}
.flow.is-vertical .flow-fill { background: linear-gradient(180deg, var(--green-bright), #3c78e6); }

/* ربات کوچک */
.flow-bot {
  position: absolute; left: 0; top: 0; z-index: 3; width: 50px; height: 54px;
  opacity: 0; pointer-events: none;
  transition: transform .95s cubic-bezier(.65, 0, .35, 1), opacity .4s ease;
}
.flow.is-running .flow-bot { opacity: 1; }
.flow-bot-in { animation: rb-float 2.4s ease-in-out infinite; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .4)); }
.flow-bot svg { width: 50px; height: 54px; overflow: visible; }
.fb-eyes { filter: drop-shadow(0 0 3px rgba(111, 245, 200, .8)); transition: opacity .2s ease; }
.fb-eye { transform-box: fill-box; transform-origin: center; animation: rb-blink 4s infinite; transition: transform .3s ease; }
.fb-code { opacity: 0; transform-box: fill-box; transform-origin: center; filter: drop-shadow(0 0 3px rgba(111, 245, 200, .8)); transition: opacity .2s ease; }
.flow.is-working .fb-eyes { opacity: 0; }
.flow.is-working .fb-code { opacity: 1; animation: rb-code .8s ease-in-out infinite; }
.flow.is-working .fb-ant { animation: rb-flash .4s ease-in-out infinite; }
.flow.is-working .flow-bot-in { animation-duration: .7s; }
.flow.is-complete .fb-eye { animation: none; transform: scaleY(.45); }

/* مراحل */
.steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps li { position: relative; transition: opacity .6s ease, transform .6s ease; }
.flow:not(.is-armed) .steps li:not(:last-child)::after {     /* بدون جاوااسکریپت: خط‌چین ساده */
  content: ""; position: absolute; top: 22px; inset-inline-start: 56px; width: calc(100% - 56px + 32px - 10px);
  border-top: 1.5px dashed rgba(255, 255, 255, .28);
}
.step-n {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--green-bright); color: var(--green-bright);
  display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; background: var(--navy); position: relative; z-index: 1;
  transition: background-color .45s ease, color .45s ease, border-color .45s ease, box-shadow .45s ease, transform .45s cubic-bezier(.3, 1.5, .5, 1);
}
.steps h3 { margin-top: 18px; font-size: 1.1rem; font-weight: 700; line-height: 1.7; }
.steps p { margin-top: 4px; color: #b9c6df; font-size: .94rem; }

/* هنوز نرسیده */
.flow.is-armed .steps li:not(.is-active):not(.is-done) { opacity: .28; transform: translateY(10px); }

/* در حال پردازش */
.steps li.is-active .step-n {
  color: #fff; box-shadow: 0 0 0 6px rgba(7, 173, 126, .16), 0 0 26px rgba(7, 173, 126, .55);
}
.steps li.is-active .step-n::before {
  content: ""; position: absolute; inset: -7px; border-radius: 50%;
  border: 2px solid transparent; border-top-color: var(--green-bright); border-inline-start-color: var(--green-bright);
  animation: rb-spin .8s linear infinite;
}

/* انجام‌شده */
.steps li.is-done .step-n {
  background: var(--green-bright); border-color: var(--green-bright); color: var(--navy);
  box-shadow: 0 0 0 6px rgba(7, 173, 126, .14);
}

/* پایان: تیک تأیید روی مرحلهٔ آخر */
.step-tick {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0;
  fill: none; stroke: var(--navy); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 30; stroke-dashoffset: 30;
  transition: stroke-dashoffset .6s ease .15s, opacity .2s ease;
}
.flow.is-complete .steps li:last-child .step-n {
  color: transparent; transform: scale(1.15);
  box-shadow: 0 0 0 8px rgba(7, 173, 126, .18), 0 0 34px rgba(7, 173, 126, .65);
}
.flow.is-complete .step-tick { opacity: 1; stroke-dashoffset: 0; }
.flow.is-complete .steps li:last-child .step-n::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--green-bright); animation: rb-ring 1.8s ease-out infinite;
}

/* ==========================================================
   نظر مشتری‌ها – گروه گفت‌وگو
   ========================================================== */
#testimonials {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(52px, 6vw, 80px) clamp(44px, 5vw, 64px);
}
#testimonials::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 55% at 0% 30%, rgba(7, 173, 126, .10), transparent 70%),
    radial-gradient(40% 50% at 100% 100%, rgba(60, 120, 230, .09), transparent 70%);
}

.reviews {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4vw, 56px); align-items: start;
}
.reviews-side { position: sticky; top: calc(var(--header-h) + 24px); }
.reviews-side .section-head { margin-bottom: 24px; }

/* کارت میانگین امتیاز */
.score {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; gap: 18px; padding: 22px 24px;
  background: #fff; border: 1px solid #e3e9f2; border-radius: 22px;
  box-shadow: 0 1px 2px rgba(7, 31, 69, .04), 0 20px 40px -28px rgba(7, 31, 69, .35);
}
.score::after {
  content: "\201D"; position: absolute; z-index: -1; inset-inline-end: 14px; top: -18px;
  font-size: 8rem; line-height: 1; font-weight: 800; color: rgba(7, 173, 126, .1);
}
.score-n {
  font-size: 3.2rem; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, var(--navy-2), var(--green-bright));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.score .stars .ico { width: 20px; height: 20px; }
.score small { display: block; margin-top: 4px; color: var(--muted); font-size: .86rem; line-height: 1.7; }

.stars { display: flex; gap: 2px; color: #c9d3e2; }
.stars .on { color: var(--amber); }
.stars .ico { width: 16px; height: 16px; }
.ico-fill { fill: currentColor; }

/* پنجرهٔ گفت‌وگو */
.chat-win {
  position: relative; background: #fff; border: 1px solid #dfe7f1; border-radius: 26px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(7, 31, 69, .05), 0 40px 80px -40px rgba(7, 31, 69, .45);
}
.chat-head {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; color: #fff;
  background:
    radial-gradient(80% 160% at 100% 0%, rgba(7, 173, 126, .35), transparent 60%),
    linear-gradient(135deg, var(--navy-2), var(--navy));
}
.chat-av { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; flex: none; background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .15); }
.chat-av img { width: 100%; height: 100%; object-fit: cover; }
.chat-title { display: flex; flex-direction: column; line-height: 1.5; }
.chat-title strong { font-size: .98rem; font-weight: 800; }
.chat-title small { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: #b9c6df; }
.chat-title small::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green-bright);
  animation: ping 2s ease-out infinite;
}

.chat-body {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 20px 18px; max-height: 540px; overflow-y: auto; overscroll-behavior: contain;
  background-color: #e9eff7;
  background-image: radial-gradient(rgba(7, 31, 69, .07) 1px, transparent 1.3px);
  background-size: 18px 18px;
  scrollbar-width: thin; scrollbar-color: #c3cfe0 transparent;
}
.chat-day, .chat-sys {
  align-self: center; padding: 2px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .85); color: var(--navy-2);
  font-size: .76rem; font-weight: 600; line-height: 1.9;
}
.chat-sys { padding: 8px 16px; font-size: .9rem; margin-block: 24px; }

/* پیام هر مشتری */
.msg-r { display: flex; align-items: flex-end; gap: 10px; max-width: 92%; }
.msg-r .who-av {
  width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--c, var(--navy)); color: #fff; font-weight: 800; font-size: .95rem;
  box-shadow: 0 0 0 3px #fff, 0 8px 16px -8px rgba(7, 31, 69, .5);
}
.msg-b {
  position: relative; min-width: 0; padding: 10px 14px 8px; background: #fff;
  border-radius: 18px; border-end-start-radius: 5px;
  box-shadow: 0 1px 1px rgba(7, 31, 69, .06), 0 12px 24px -20px rgba(7, 31, 69, .4);
  transition: box-shadow .3s ease, transform .3s ease;
}
.msg-b:hover { transform: translateY(-2px); box-shadow: 0 1px 1px rgba(7, 31, 69, .06), 0 18px 30px -18px rgba(7, 31, 69, .45); }
.msg-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; line-height: 1.6; }
.msg-name strong { color: var(--c, var(--green)); font-size: .88rem; font-weight: 800; }
.msg-name small { color: var(--muted); font-size: .74rem; }
.msg-b p { margin-top: 4px; font-size: .95rem; line-height: 1.95; color: var(--ink); }
.msg-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.msg-meta .stars { padding: 2px 8px; border-radius: 999px; background: #fff8e6; border: 1px solid #f6e3b0; }
.msg-meta .stars .ico { width: 13px; height: 13px; }
.msg-tick { display: inline-flex; color: var(--green-bright); }
.msg-tick .ico { width: 15px; height: 15px; }
.msg-tick .ico + .ico { margin-inline-start: -9px; }

/* در حال نوشتن… */
.chat-typing {
  align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; margin-inline-start: 48px;
  background: #fff; border-radius: 16px; border-end-start-radius: 5px;
  box-shadow: 0 1px 1px rgba(7, 31, 69, .06);
}
.chat-typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa9c2; animation: blink 1s infinite ease-in-out; }
.chat-typing i:nth-child(2) { animation-delay: .15s; }
.chat-typing i:nth-child(3) { animation-delay: .3s; }

/* ورود پیام‌ها یکی‌یکی */
.chat-win.is-armed .msg-r,
.chat-win.is-armed .chat-typing { opacity: 0; transform: translateY(16px) scale(.97); }
.chat-win.is-in .msg-r,
.chat-win.is-in .chat-typing {
  opacity: 1; transform: none;
  transition: opacity .5s ease, transform .55s cubic-bezier(.2, .8, .2, 1.15);
  transition-delay: calc(var(--i, 0) * 140ms + 150ms);
}

/* نوار نوشتن (فرم بازخورد) */
.feedback summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px; font-weight: 600;
}
.feedback summary::-webkit-details-marker { display: none; }
.chat-win .feedback { margin: 0; max-width: none; padding: 12px 14px; border-top: 1px solid #e6ecf4; background: #fff; }
.chat-win .feedback summary {
  justify-content: space-between; padding: 5px; padding-inline-start: 18px;
  border-radius: 999px; background: var(--paper); border: 1px solid #e3e9f2;
  color: var(--muted); font-weight: 500;
  transition: border-color .25s ease, color .25s ease, background-color .25s ease;
}
.chat-win .feedback summary:hover { border-color: #bfe3d3; color: var(--navy); }
.chat-win .feedback summary .ico {
  flex: none; width: 42px; height: 42px; padding: 11px; border-radius: 50%;
  background: var(--green); color: #fff; transform: scaleX(-1);
  box-shadow: 0 10px 20px -10px rgba(6, 125, 91, .8);
  transition: background-color .25s ease, transform .25s ease;
}
.chat-win .feedback summary:hover .ico { transform: scaleX(-1) translateX(-2px); }
.chat-win .feedback[open] summary { color: var(--navy); font-weight: 700; background: #fff; }
.chat-win .feedback[open] summary .ico { background: var(--navy); transform: scaleX(-1); }
.feedback-form { display: grid; gap: 16px; }
.chat-win .feedback-form { margin-top: 14px; padding: 2px 4px 4px; }

.rate { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; width: max-content; }
.rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate label { cursor: pointer; color: #c0cbdd; padding: 2px; line-height: 0; border-radius: 6px; }
.rate label .ico { fill: none; stroke: currentColor; stroke-width: 1.6; }
.rate input:checked ~ label, .rate label:hover, .rate label:hover ~ label { color: var(--amber); }
.rate input:checked ~ label .ico, .rate label:hover .ico, .rate label:hover ~ label .ico { fill: currentColor; }
.rate input:focus-visible + label { outline: 3px solid var(--green-bright); }

/* ==========================================================
   سؤالات متداول – گفت‌وگو با ربات
   ========================================================== */
#faq { padding-block: clamp(44px, 5vw, 64px); }
#faq + .section { padding-top: clamp(52px, 6vw, 80px); }

.faq-wrap {
  display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(24px, 4vw, 48px); align-items: start;
}

/* کارت عنوان: سرمه‌ای، با آواتار ربات و علامت سؤال بزرگ */
.faq-wrap .section-head {
  position: sticky; top: calc(var(--header-h) + 24px);
  max-width: none; margin: 0; overflow: hidden; isolation: isolate;
  min-height: 280px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 100px clamp(24px, 3vw, 34px) clamp(26px, 3vw, 34px);
  border-radius: 24px; color: #fff;
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(7, 173, 126, .38), transparent 70%),
    radial-gradient(60% 60% at 0% 100%, rgba(60, 120, 230, .32), transparent 70%),
    linear-gradient(160deg, var(--navy-2), var(--navy));
  box-shadow: 0 30px 60px -30px rgba(7, 31, 69, .7);
}
.faq-wrap .section-head::before {
  content: "؟"; position: absolute; z-index: -1; top: -34px; inset-inline-end: 6px;
  font-size: 13rem; font-weight: 800; line-height: 1; color: rgba(255, 255, 255, .07);
}
.faq-wrap .section-head::after {
  content: ""; position: absolute; top: clamp(24px, 3vw, 32px); inset-inline-start: clamp(24px, 3vw, 34px);
  width: 54px; height: 54px; border-radius: 50%;
  background: #fff url("../img/favicon.png") center / cover no-repeat;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .14), 0 0 0 9px rgba(7, 173, 126, .18), 0 14px 28px -10px rgba(0, 0, 0, .5);
}
.faq-wrap .section-head h2 { color: #fff; }
.faq-wrap .section-head p { color: #c3cfe4; }

/* فهرست سؤال‌ها */
.faq { display: grid; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid #e3e9f2; border-radius: 18px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(7, 31, 69, .04);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.faq details:hover { border-color: #cfdbe9; }
.faq details[open] { border-color: #bfe3d3; box-shadow: 0 22px 44px -28px rgba(7, 31, 69, .38); }

.faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: center;
  justify-content: flex-start; gap: 14px; padding: 14px 18px;
  font-size: 1rem; font-weight: 700; color: var(--navy); line-height: 1.8;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {                /* نشان سؤال */
  content: "؟"; flex: none; width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.1rem; font-weight: 800;
  background: var(--mint); color: var(--green);
  transition: background .3s ease, color .3s ease;
}
.faq details[open] summary::before { background: linear-gradient(145deg, var(--navy-2), var(--navy)); color: var(--green-bright); }
.faq summary .ico {
  flex: none; margin-inline-start: auto; width: 32px; height: 32px; padding: 7px; border-radius: 50%;
  background: var(--paper); color: var(--navy);
  transition: transform .3s ease, background-color .3s ease, color .3s ease;
}
.faq details:hover summary .ico { background: #e8eef6; }
.faq details[open] summary .ico { transform: rotate(180deg); background: var(--green); color: #fff; }

/* پاسخ: حباب پیام ربات */
.faq details p {
  position: relative; max-width: none;
  margin: 0 18px 18px; margin-inline-start: 68px;
  padding: 12px 16px; background: var(--paper); border: 1px solid #e6ecf4;
  border-radius: 16px; border-start-start-radius: 4px;
  color: #3a4a66; font-size: .94rem; line-height: 1.95;
}
.faq details p::before {               /* آواتار ربات کنار پاسخ */
  content: ""; position: absolute; top: 0; inset-inline-start: -48px;
  width: 34px; height: 34px; border-radius: 50%;
  background: #fff url("../img/favicon.png") center / cover no-repeat;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px #cfe3da;
}
.faq details[open] p { animation: faq-in .35s ease-out both; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ==========================================================
   بلاگ – کارت‌های تمام‌تصویر روی زمینهٔ سرمه‌ای
   ========================================================== */
#blog {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(60px, 7vw, 100px);
}
#blog::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(45% 60% at 100% 0%, rgba(7, 173, 126, .22), transparent 70%),
    radial-gradient(45% 60% at 0% 100%, rgba(60, 120, 230, .22), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, #061a3b 100%);
}
#blog::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 75%);
          mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 75%);
}

/* سرتیتر */
.blog-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
#blog .section-head { margin-bottom: 0; }
#blog h2 .hl {
  color: var(--green-bright); padding-inline: 4px;
  background: linear-gradient(transparent 66%, rgba(7, 173, 126, .22) 66%, rgba(7, 173, 126, .22) 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.blog-eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 14px;
  padding: 4px 14px; border-radius: 999px; line-height: 1.8;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  font-size: .82rem; font-weight: 600; color: #d5def0;
}
.blog-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--green-bright); animation: ping 2s ease-out infinite; }

.blog-all {
  flex: none; display: inline-flex; align-items: center; gap: 12px;
  padding: 6px; padding-inline-start: 20px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  color: #fff; font-weight: 700; font-size: .94rem;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color .3s, border-color .3s, color .3s;
}
.blog-all i {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--green-bright); color: var(--navy); transition: transform .3s ease;
}
.blog-all:hover { text-decoration: none; background: #fff; border-color: #fff; color: var(--navy); }
.blog-all:hover i { transform: translateX(-4px); }

/* کارت‌ها */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }

.post {
  position: relative; isolation: isolate; overflow: hidden;
  aspect-ratio: 4 / 5; border-radius: 26px; padding: 18px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--navy-2); color: #fff;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .65);
  transition: translate .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s ease;
}
/* حاشیهٔ نوری چرخان */
.post::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--ang), rgba(7, 173, 126, .95), rgba(60, 120, 230, .85), transparent 35%, transparent 65%, rgba(7, 173, 126, .95));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .45; animation: ang-spin 6s linear infinite; transition: opacity .4s ease;
}
/* لایهٔ تیرگی روی تصویر */
.post::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(80% 45% at 50% 100%, rgba(7, 173, 126, .28), transparent 70%),
    linear-gradient(180deg, rgba(7, 31, 69, .35) 0%, rgba(7, 31, 69, .05) 30%, rgba(7, 31, 69, .78) 62%, #061a3b 100%);
}
.post-img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  transition: scale 1s cubic-bezier(.2, .7, .2, 1), filter .6s ease;
}
.post-shine {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .2) 50%, transparent 65%);
  translate: -130% 0; transition: translate 1s ease;
}

.post:hover { translate: 0 -8px; box-shadow: 0 40px 70px -28px rgba(7, 173, 126, .45); }
.post:hover::before { opacity: 1; }
.post:hover .post-img { scale: 1.1; filter: saturate(1.2); }
.post:hover .post-shine { translate: 130% 0; }
.post:focus-within { outline: 3px solid var(--green-bright); outline-offset: 4px; }
.post-title:focus-visible { outline: none; }

/* بالای کارت */
.post-top { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.post-cat {
  display: inline-flex; align-items: center; gap: 7px; padding: 3px 12px; border-radius: 999px; line-height: 1.8;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28);
  font-size: .78rem; font-weight: 600; color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.post-cat::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: var(--green-bright); box-shadow: 0 0 0 3px rgba(7, 173, 126, .3);
}
.post-n {
  font-size: 2.6rem; font-weight: 800; line-height: 1; color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .6);
  transition: color .4s ease, -webkit-text-stroke-color .4s ease;
}
.post:hover .post-n { color: var(--green-bright); -webkit-text-stroke-color: var(--green-bright); }

/* پایین کارت */
.post-body { position: relative; z-index: 1; display: grid; gap: 8px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8rem; color: #c3cfe4; line-height: 1.8; }
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-meta svg { color: var(--green-bright); flex: none; }
.post h3 { font-size: 1.2rem; font-weight: 800; line-height: 1.7; text-shadow: 0 2px 14px rgba(0, 0, 0, .4); }
.post-title { color: #fff; }
.post-title:hover { text-decoration: none; }
.post-title::after { content: ""; position: absolute; inset: -100vh -100vw; z-index: 4; }   /* کل کارت کلیک‌پذیر */
.post { clip-path: inset(0 round 26px); }

/* توضیح: در دسکتاپ با هاور باز می‌شود */
.post-desc { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .5s ease, opacity .4s ease; }
.post-desc > div { overflow: hidden; }
.post-desc p {
  color: #c3cfe4; font-size: .9rem; line-height: 1.9;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post:hover .post-desc, .post:focus-within .post-desc { grid-template-rows: 1fr; opacity: 1; }

.post-go { display: inline-flex; align-items: center; gap: 10px; margin-top: 4px; font-size: .9rem; font-weight: 700; color: #fff; }
.post-go i {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25);
  transition: background-color .3s, color .3s, border-color .3s, transform .3s ease;
}
.post:hover .post-go i { background: var(--green-bright); border-color: var(--green-bright); color: var(--navy); transform: translateX(-4px); }

/* دستگاه لمسی: توضیح همیشه دیده شود */
@media (hover: none) {
  .post-desc { grid-template-rows: 1fr; opacity: 1; }
  .post-go i { background: var(--green-bright); border-color: var(--green-bright); color: var(--navy); }
}

.swipe-hint { display: none; }

/* ناوبری اسلایدر بلاگ (با blog-slider.js ساخته می‌شود) */
.slider-nav { display: none; }
.posts.has-js ~ .swipe-hint { display: none !important; }

@media (max-width: 1024px) {
  .slider-nav {
    display: flex; align-items: center; justify-content: center; gap: 14px;
    margin-top: 6px;
  }
  .sn-btn {
    flex: none; display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
    border-radius: 50%; color: #fff;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    transition: background-color .25s, color .25s, border-color .25s, opacity .25s, transform .2s;
    -webkit-tap-highlight-color: transparent;
  }
  .sn-prev svg { transform: rotate(180deg); }          /* راست‌به‌چپ: قبلی سمت راست */
  .sn-btn:not(:disabled):active { transform: scale(.92); }
  .sn-btn:not(:disabled):hover,
  .sn-next:not(:disabled) { background: var(--green-bright); border-color: var(--green-bright); color: var(--navy); }
  .sn-next:not(:disabled) { box-shadow: 0 10px 24px -10px rgba(7, 173, 126, .8); }
  .sn-btn:disabled { opacity: .3; cursor: default; }

  .sn-dots { display: flex; align-items: center; }
  .sn-dot {
    display: grid; place-items: center; width: 24px; height: 32px; padding: 0;
    background: none; border: 0; transition: width .3s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .sn-dot::before {
    content: ""; width: 8px; height: 8px; border-radius: 999px;
    background: rgba(255, 255, 255, .3); transition: width .3s ease, background-color .3s ease;
  }
  .sn-dot.is-on { width: 40px; }
  .sn-dot.is-on::before { width: 26px; background: var(--green-bright); box-shadow: 0 0 10px rgba(7, 173, 126, .6); }

  /* تکان کوتاه: نشان می‌دهد کارت‌ها کشیدنی‌اند */
  .posts.is-nudge .post { animation: post-nudge 1.3s ease-in-out; }
  @keyframes post-nudge {
    0%, 100% { translate: 0 0; }
    30% { translate: 46px 0; }
    55% { translate: 0 0; }
    75% { translate: 16px 0; }
  }
}

/* تبلت: دو کارت کنار هم با اسکرول افقی */
@media (max-width: 1024px) {
  .posts {
    display: flex; gap: 16px; padding: 10px 20px 22px; margin-inline: -20px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  }
  .posts::-webkit-scrollbar { display: none; }
  .post { flex: 0 0 calc(50% - 8px); scroll-snap-align: start; }

  .swipe-hint {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    margin-top: 4px; color: #b9c6df; font-size: .84rem; font-weight: 600;
  }
  .swipe-hint i {
    display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
    background: rgba(7, 173, 126, .18); color: var(--green-bright);
    animation: swipe-nudge 1.6s ease-in-out infinite;
  }
  @keyframes swipe-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-8px); } }
}

/* موبایل: هر کارت (حتی اولی و آخری) وسط صفحه می‌آید */
@media (max-width: 760px) {
  .blog-head { flex-direction: column; align-items: flex-start; margin-bottom: 28px; }
  .posts { gap: 14px; padding-inline: 10vw; scroll-padding-inline: 0; }
  .post { flex: 0 0 80vw; scroll-snap-align: center; padding: 16px; border-radius: 24px; }
  .post:hover { translate: none; }
  .post h3 { font-size: 1.08rem; }
  .post-n { font-size: 2.2rem; }

  /* کارت فعال (نزدیک‌ترین به وسط) با blog-slider.js مشخص می‌شود */
  .posts.has-js .post {
    scale: .9; opacity: .55;
    transition: scale .45s cubic-bezier(.2, .7, .2, 1), opacity .45s ease, box-shadow .45s ease;
  }
  .posts.has-js .post.is-active { scale: 1; opacity: 1; box-shadow: 0 34px 60px -28px rgba(7, 173, 126, .45); }
  .posts.has-js .post.is-active::before { opacity: 1; }
  .posts.has-js .post.is-active .post-n { color: var(--green-bright); -webkit-text-stroke-color: var(--green-bright); }
  .posts.has-js .post.is-active .post-img { scale: 1.06; filter: saturate(1.15); }
}

/* ==========================================================
   فرم سفارش – ربات مشتاق کنار فرم
   ========================================================== */
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

#order {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(52px, 6vw, 84px);
  background: linear-gradient(180deg, var(--mint) 0%, #f2fbf7 55%, #fff 100%);
}
#order::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(40% 55% at 85% 15%, rgba(7, 173, 126, .16), transparent 70%),
    radial-gradient(45% 60% at 8% 75%, rgba(60, 120, 230, .12), transparent 70%);
}
#order::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(7, 31, 69, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 31, 69, .04) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(60% 60% at 30% 40%, #000 0%, transparent 75%);
          mask-image: radial-gradient(60% 60% at 30% 40%, #000 0%, transparent 75%);
}

.order-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.order-info { padding-top: 8px; }
.order-info .lead { margin-top: 12px; font-size: 1.04rem; }
.order-info h3 { margin-top: 30px; font-size: 1.02rem; font-weight: 700; color: var(--navy); }

/* نکته‌های نوشتن: کارت‌های شیشه‌ای */
.checks { margin-top: 12px; display: grid; gap: 10px; }
.checks li {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  background: rgba(255, 255, 255, .72); border: 1px solid rgba(7, 31, 69, .07); border-radius: 14px;
  color: #2c3b57; font-size: .94rem; line-height: 1.8;
  box-shadow: 0 8px 20px -18px rgba(7, 31, 69, .45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform .3s ease, border-color .3s ease, background-color .3s ease;
}
.checks li:hover { transform: translateX(-4px); border-color: #bfe3d3; background: #fff; }
.checks .ico { flex: none; width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--green); color: #fff; }

/* راه‌های ارتباطی: چیپ */
.contact { margin-top: 6px; }
.contact ul { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; }
.contact li {
  display: flex; align-items: center; gap: 10px; padding: 6px; padding-inline-end: 16px;
  background: #fff; border: 1px solid #e3e9f2; border-radius: 999px;
  color: #2c3b57; font-size: .92rem; line-height: 1.6;
  box-shadow: 0 8px 20px -18px rgba(7, 31, 69, .5);
  transition: transform .25s ease, border-color .25s ease;
}
.contact li:hover { transform: translateY(-2px); border-color: #bfe3d3; }
.contact li a { color: var(--navy); font-weight: 600; }
.contact .ico {
  flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 50%;
  background: linear-gradient(145deg, var(--navy-2), var(--navy)); color: var(--green-bright);
}

/* پنل فرم با حاشیهٔ گرادیانی چرخان */
.order-panel {
  position: relative; margin-top: 130px;
  padding: clamp(22px, 4vw, 36px); border-radius: 26px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    conic-gradient(from var(--ang), rgba(7, 173, 126, .9), rgba(60, 120, 230, .7), rgba(7, 173, 126, .12), rgba(60, 120, 230, .12), rgba(7, 173, 126, .9)) border-box;
  box-shadow: 0 1px 2px rgba(7, 31, 69, .05), 0 40px 80px -40px rgba(7, 31, 69, .4), 0 0 0 8px rgba(255, 255, 255, .55);
  animation: ang-spin 7s linear infinite;
  transition: box-shadow .5s ease;
}
@keyframes ang-spin { to { --ang: 360deg; } }
.order-panel.is-done { box-shadow: 0 1px 2px rgba(7, 31, 69, .05), 0 40px 80px -40px rgba(7, 173, 126, .55), 0 0 0 8px rgba(7, 173, 126, .14); }

/* نوار پیشرفت فرم */
.order-progress { display: none; align-items: center; gap: 12px; margin-bottom: 22px; }
.order-panel.has-js .order-progress { display: flex; }
.order-panel .order-progress.is-done { display: none; }
.op-bar { flex: 1; height: 8px; border-radius: 999px; background: var(--paper); border: 1px solid #e6ecf4; overflow: hidden; }
.op-bar i {
  display: block; width: 100%; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, #3c78e6, var(--green-bright));
  transform: scaleX(var(--p, 0)); transform-origin: right center;
  transition: transform .55s cubic-bezier(.3, 1.3, .5, 1);
  box-shadow: 0 0 10px rgba(7, 173, 126, .55);
}
.op-txt { font-size: .8rem; font-weight: 700; color: var(--muted); white-space: nowrap; transition: color .3s; }
.order-progress.is-full .op-txt { color: var(--green); }

/* ربات روی لبهٔ فرم */
.order-bot {
  position: absolute; z-index: 3; bottom: calc(100% - 10px); inset-inline-end: 26px;
  width: 150px; pointer-events: none;
}
.ob-svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 -8px 18px rgba(7, 31, 69, .12)); }
.ob-headg { transform-box: view-box; transform-origin: 100px 130px; animation: ob-eager 2.6s ease-in-out infinite; }
.ob-bob { transform-box: view-box; transform-origin: 100px 190px; }
.ob-ant { transform-box: fill-box; transform-origin: center; transition: fill .3s; }
.ob-ant-ring { transform-box: fill-box; transform-origin: center; animation: rb-ring 2.2s ease-out infinite; }
.ob-eyes { filter: drop-shadow(0 0 4px rgba(111, 245, 200, .8)); transition: transform .35s ease, opacity .25s ease; }
.ob-eye { transform-box: fill-box; transform-origin: center; animation: rb-blink 4.5s infinite; transition: transform .3s ease; }
.ob-happy, .ob-code { opacity: 0; transform-box: fill-box; transform-origin: center; filter: drop-shadow(0 0 4px rgba(111, 245, 200, .8)); transition: opacity .25s ease; }
.ob-cheek, .ob-sparks { opacity: 0; transition: opacity .35s ease; }
.ob-sp { transform-box: fill-box; transform-origin: center; }
.ob-mouth { transform-box: fill-box; transform-origin: center; transition: transform .3s ease, opacity .25s ease; }
.ob-core { transform-box: fill-box; transform-origin: center; animation: ob-pulse 1.6s ease-in-out infinite; }

@keyframes ob-eager {
  0%, 100% { transform: translateY(0) rotate(0); }
  25% { transform: translateY(-6px) rotate(-3deg); }
  50% { transform: translateY(0) rotate(0); }
  75% { transform: translateY(-6px) rotate(3deg); }
}
@keyframes ob-shake { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-7deg); } 40% { transform: rotate(6deg); } 60% { transform: rotate(-4deg); } 80% { transform: rotate(3deg); } }
@keyframes ob-jump { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-24px); } 50% { transform: translateY(0); } 65% { transform: translateY(-10px); } 80% { transform: translateY(0); } }
@keyframes ob-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: .7; } }
@keyframes ob-twinkle { 0%, 100% { transform: scale(.6) rotate(0); opacity: .4; } 50% { transform: scale(1.2) rotate(45deg); opacity: 1; } }

/* حباب گفت‌وگوی ربات */
.ob-say {
  position: absolute; top: 8px; inset-inline-end: calc(100% + 2px);
  width: max-content; max-width: 250px; margin: 0; padding: 10px 14px;
  background: #fff; color: var(--navy); border: 1px solid #e3e9f2;
  border-radius: 16px; border-end-end-radius: 4px;
  font-size: .86rem; font-weight: 600; line-height: 1.8;
  box-shadow: 0 16px 34px -18px rgba(7, 31, 69, .45);
  transition: background-color .3s, color .3s, border-color .3s;
}
.ob-say.is-new { animation: ob-pop .38s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes ob-pop { from { opacity: 0; transform: translateY(6px) scale(.92); } to { opacity: 1; transform: none; } }

/* کاغذرنگی */
.ob-confetti { position: absolute; left: 50%; top: 35%; width: 0; height: 0; }
.ob-confetti i {
  position: absolute; width: 8px; height: 12px; border-radius: 2px; background: var(--c);
  animation: ob-conf 1.8s cubic-bezier(.2, .7, .3, 1) var(--d, 0s) forwards;
}
@keyframes ob-conf {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  45% { transform: translate(calc(var(--x) * .7), var(--y)) rotate(calc(var(--r) * .5)); opacity: 1; }
  100% { transform: translate(var(--x), calc(var(--y) + 170px)) rotate(var(--r)); opacity: 0; }
}

/* حالت‌ها */
.order-bot[data-state="focus"] .ob-eyes,
.order-bot[data-state="typing"] .ob-eyes { transform: translate(4px, 5px); }
.order-bot[data-state="focus"] .ob-headg { animation-duration: 3.4s; }
.order-bot[data-state="typing"] .ob-headg { animation-duration: .9s; }
.order-bot[data-state="typing"] .ob-mouth { transform: scale(.7, 1.9); }
.order-bot[data-state="typing"] .ob-ant { animation: rb-flash .35s ease-in-out infinite; }

.order-bot[data-state="ready"] .ob-eyes,
.order-bot[data-state="done"] .ob-eyes { opacity: 0; }
.order-bot[data-state="ready"] .ob-happy,
.order-bot[data-state="done"] .ob-happy,
.order-bot[data-state="ready"] .ob-cheek,
.order-bot[data-state="done"] .ob-cheek,
.order-bot[data-state="ready"] .ob-sparks,
.order-bot[data-state="done"] .ob-sparks { opacity: 1; }
.order-bot[data-state="ready"] .ob-sp,
.order-bot[data-state="done"] .ob-sp { animation: ob-twinkle 1.2s ease-in-out infinite; }
.order-bot[data-state="ready"] .ob-sp:nth-child(2),
.order-bot[data-state="done"] .ob-sp:nth-child(2) { animation-delay: .3s; }
.order-bot[data-state="ready"] .ob-sp:nth-child(3),
.order-bot[data-state="done"] .ob-sp:nth-child(3) { animation-delay: .6s; }
.order-bot[data-state="ready"] .ob-mouth,
.order-bot[data-state="done"] .ob-mouth { transform: scale(1.35, 1.7); }
.order-bot[data-state="ready"] .ob-say { border-color: #bfe3d3; color: var(--green-dark); }

.order-bot[data-state="sending"] .ob-eyes,
.order-bot[data-state="sending"] .ob-mouth { opacity: 0; }
.order-bot[data-state="sending"] .ob-code { opacity: 1; animation: rb-code .8s ease-in-out infinite; }
.order-bot[data-state="sending"] .ob-headg { animation-duration: 1.2s; }
.order-bot[data-state="sending"] .ob-core { animation-duration: .5s; }

.order-bot[data-state="error"] .ob-eye { animation: none; transform: scaleY(.5); }
.order-bot[data-state="error"] .ob-headg { animation: ob-shake .6s ease-in-out 2; }
.order-bot[data-state="error"] .ob-ant { fill: #e5484d; }
.order-bot[data-state="error"] .ob-ant-ring { stroke: #e5484d; }
.order-bot[data-state="error"] .ob-say { background: #fff5f4; border-color: #f3b4ae; color: var(--danger); }

.order-bot[data-state="done"] .ob-bob { animation: ob-jump 1.3s ease-in-out 3; }
.order-bot[data-state="done"] .ob-say { background: var(--green); border-color: var(--green); color: #fff; }

/* فیلدها */
.order-panel .field:focus-within > label { color: var(--green); }
#order-form { display: grid; gap: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > .label { font-weight: 600; font-size: .94rem; color: var(--navy); transition: color .2s; }
.contact-set { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 12px; margin: 0; min-width: 0; display: grid; gap: 6px; }
.contact-set legend { font-weight: 600; font-size: .94rem; color: var(--navy); padding-inline: 6px; }
.contact-set.has-error { border-color: var(--danger); }
.opt { font-weight: 400; color: var(--muted); font-size: .84rem; }
.field input[type="text"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 9px 14px; background: #fff; border: 1.5px solid #c9d5e5; border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.9; }
.field select { appearance: none; padding-inline-end: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2352627d' 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; }
.field input::placeholder, .field textarea::placeholder { color: #8b99b1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(7, 173, 126, .22); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .86rem; line-height: 1.7; }
.field-error:empty { display: none; }
.field-foot { display: flex; justify-content: space-between; gap: 12px; }
.count { color: var(--muted); font-size: .8rem; margin-inline-start: auto; }
.fine { color: var(--muted); font-size: .82rem; text-align: center; }
.notice { padding: 10px 14px; border-radius: 10px; font-size: .92rem; }
.notice[hidden] { display: none; }
.notice.err { background: #fdecea; color: var(--danger); }
.notice.ok { background: var(--mint); color: var(--green-dark); }
#order-submit { box-shadow: 0 16px 30px -16px rgba(6, 125, 91, .8); }

.success { text-align: center; padding: 28px 8px; display: grid; justify-items: center; gap: 8px; }
.success[hidden] { display: none; }
.success-ico {
  position: relative; width: 68px; height: 68px; border-radius: 50%; background: var(--green); color: #fff;
  display: grid; place-items: center; box-shadow: 0 16px 30px -12px rgba(6, 125, 91, .7);
}
.success-ico::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--green-bright); animation: rb-ring 1.8s ease-out infinite;
}
.success h3 { font-size: 1.35rem; font-weight: 800; color: var(--navy); margin-top: 8px; }
.success p { color: var(--muted); max-width: 28em; }
.success .bot-hint { background: var(--mint); border-radius: 12px; padding: 10px 14px; font-size: .92rem; color: #2c3b57; }
.success strong { color: var(--navy); font-size: 1.15rem; letter-spacing: .04em; }

/* ==========================================================
   فوتر
   ========================================================== */
.site-footer {
  position: relative; isolation: isolate; overflow: hidden; color: #b9c6df;
  background:
    radial-gradient(50% 80% at 100% 0%, rgba(7, 173, 126, .16), transparent 70%),
    radial-gradient(45% 70% at 0% 100%, rgba(60, 120, 230, .16), transparent 70%),
    linear-gradient(180deg, #08224b 0%, var(--navy) 55%, #051731 100%);
}
/* خط درخشان بالای فوتر */
.site-footer::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 2px; z-index: 1;
  background: linear-gradient(90deg, transparent, var(--green-bright) 30%, #3c78e6 70%, transparent);
  background-size: 200% 100%;
  animation: f-shine 7s linear infinite;
}
@keyframes f-shine { to { background-position: -200% 0; } }

.footer-top {
  position: relative;
  display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr; gap: 40px 48px;
  padding-block: clamp(56px, 7vw, 80px) clamp(64px, 9vw, 120px);
}
/* نام برند بزرگ و کم‌رنگ در پس‌زمینه؛ کامل و بالای نوار پایین */
.footer-top::after {
  content: "CodingGo";
  content: "CodingGo" / "";
  position: absolute; z-index: -1; inset-inline: 0; bottom: 0;
  direction: ltr; text-align: center; white-space: nowrap; pointer-events: none;
  font-size: clamp(4rem, 14vw, 12.5rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .07);
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .01) 85%);
  -webkit-background-clip: text; background-clip: text;
}

/* برند */
.f-brand img { height: 60px; width: auto; }
.f-brand p { margin-top: 18px; max-width: 26em; font-size: .94rem; line-height: 2; color: #c3cfe4; }
.f-brand .btn { margin-top: 22px; box-shadow: 0 14px 30px -14px rgba(7, 173, 126, .8); }

/* ستون‌ها */
.f-col h3 {
  position: relative; color: #fff; font-size: 1rem; font-weight: 800;
  padding-bottom: 12px; margin-bottom: 18px;
}
.f-col h3::after {
  content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 28px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--green-bright), #3c78e6);
}
.f-col ul { display: grid; gap: 10px; }
.f-col a {
  display: inline-flex; align-items: center; gap: 0;
  color: #b9c6df; font-size: .94rem; transition: color .25s ease, gap .25s ease;
}
.f-col a::before {
  content: ""; width: 0; height: 2px; border-radius: 2px; background: var(--green-bright);
  transition: width .25s ease;
}
.f-col a:hover, .f-col a:focus-visible { color: #fff; text-decoration: none; gap: 8px; }
.f-col a:hover::before, .f-col a:focus-visible::before { width: 12px; }
.f-contact a::before { display: none; }

/* ارتباط با ما */
.f-contact { gap: 12px !important; }
.f-contact li { display: flex; align-items: center; gap: 12px; font-size: .94rem; color: #d5def0; }
.f-contact .ico {
  flex: none; width: 38px; height: 38px; padding: 10px; margin: 0; border-radius: 12px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: var(--green-bright);
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.f-trust { margin-top: 20px; display: inline-block; background: #fff; border-radius: 12px; padding: 8px 10px; line-height: 0; }
.f-trust img { display: block; max-width: 96px; height: auto; }
.f-contact li:hover .ico { background: var(--green-bright); border-color: var(--green-bright); color: var(--navy); }
.f-contact a { color: #d5def0; }
.f-contact a:hover { color: #fff; }

/* نوار پایین */
.footer-bottom {
  position: relative; border-top: 1px solid rgba(255, 255, 255, .08);
  background: rgba(3, 14, 33, .35);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.fb-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; flex-wrap: wrap; }
.copy { font-size: .86rem; color: #93a3c2; }
.to-top {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04);
  font-size: .86rem; font-weight: 600; color: #d5def0;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.to-top .ico { transform: rotate(180deg); transition: transform .25s ease; }
.to-top:hover { background: var(--green-bright); border-color: var(--green-bright); color: var(--navy); text-decoration: none; }
.to-top:hover .ico { transform: rotate(180deg) translateY(2px); }

/* ---------- واکنش‌گرا ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: 1fr 1fr; }
  .works { grid-template-columns: 1fr 1fr; }
  .steps { gap: 20px; }
  .order-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }

  /* نظر مشتری‌ها: ستون کناری بالای گفت‌وگو */
  .reviews { grid-template-columns: 1fr; }
  .reviews-side { position: static; }

  /* سؤالات متداول: کارت عنوان بالای فهرست */
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-wrap .section-head { position: relative; top: auto; min-height: 0; }
  .faq-wrap .section-head::before { font-size: 10rem; top: -26px; }
}
@media (max-width: 900px) {
  .header-in { justify-content: space-between; }
  .menu-btn { display: inline-grid; }
  /* منوی موبایل: کشو که از سمت راست باز می‌شود */
  .nav {
    position: fixed; top: var(--header-h); bottom: 0; right: 0; left: auto; width: min(320px, 86vw); margin: 0;
    background: var(--navy-2); border-inline-start: 1px solid rgba(255, 255, 255, .1);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 12px 24px 28px; overflow-y: auto;
    box-shadow: -24px 0 48px -20px rgba(7, 31, 69, .5);
    transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s;
  }
  .site-header.is-open .nav { transform: none; visibility: visible; transition: transform .3s ease, visibility 0s; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .nav a:not(.btn)::after { display: none; }
  .nav .nav-cta { margin: 18px 0 0; border: 0; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .nav, .nav a::after { transition: none !important; }
}
@media (max-width: 760px) {
  .works { grid-template-columns: 1fr; gap: 20px; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }

  /* فوتر موبایل: دو ستون پیوندها کنار هم، برند و تماس تمام‌عرض */
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px 24px; padding-block: 48px 84px; }
  .footer-top > .f-col:last-child { grid-column: 1 / -1; }
  .footer-top::after { font-size: 19vw; }
  .fb-in { justify-content: center; text-align: center; }

  /* فیلترها در موبایل: یک ردیف با اسکرول افقی */
  .chips {
    flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding: 2px 20px 8px; margin-bottom: 20px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .chips::-webkit-scrollbar { display: none; }

  /* مراحل موبایل: عمودی، دایره کنار متن */
  .steps { grid-template-columns: 1fr; row-gap: 30px; }
  .steps li { display: grid; grid-template-columns: 46px 1fr; column-gap: 16px; align-items: start; }
  .steps li::after { display: none; }
  .step-n { grid-row: 1 / span 2; }
  .steps h3 { margin-top: 6px; }
  .steps p { grid-column: 2; }

  /* هیرو موبایل: برچسب ← عنوان ← گوشی و ربات ← توضیح ← دکمه‌ها ← ویژگی‌ها */
  .hero-grid { row-gap: 0; }
  .hero-copy { display: contents; }
  .hero-eyebrow { order: 1; justify-self: start; }
  .hero h1 { order: 2; }
  .hero-visual { order: 3; margin-top: 28px; }
  .hero .lead { order: 4; margin-top: 28px; }
  .hero-actions { order: 5; margin-top: 22px; }
  .hero-points { order: 6; margin-top: 20px; }
}
/* موبایل: ربات زیر گوشی، کنار برچسب وضعیت */
@media (max-width: 560px) {
  .hero-stage { flex-direction: column; align-items: center; gap: 0; }
  .hero-bot { width: auto; flex-direction: row; gap: 12px; margin: -4px 0 0; }
  .bot-svg { width: 92px; }
  .bot-beam, .bot-node { display: none; }
  .bot-status { margin-top: 0; }
  .hero-eyebrow { font-size: .8rem; }

  /* خدمات موبایل: کارت فشرده، آیکون کنار متن */
  .service-list { grid-template-columns: 1fr; gap: 12px; }
  .service { flex-direction: row; align-items: flex-start; gap: 14px; padding: 18px 16px; }
  .service-ico { width: 48px; height: 48px; border-radius: 14px; }
  .service::after { font-size: 2.2rem; top: 10px; inset-inline-end: 14px; }

  /* نظر مشتری‌ها موبایل */
  .score { padding: 18px; gap: 14px; }
  .score-n { font-size: 2.6rem; }
  .chat-body { padding: 16px 12px; max-height: 480px; }
  .msg-r { max-width: 100%; gap: 8px; }
  .msg-r .who-av { width: 32px; height: 32px; font-size: .85rem; }
  .chat-typing { margin-inline-start: 40px; }

  /* سؤالات متداول موبایل */
  .faq-wrap .section-head { padding-top: 92px; }
  .faq summary { padding: 12px 14px; gap: 12px; font-size: .96rem; }
  .faq summary::before { width: 32px; height: 32px; border-radius: 10px; }
  .faq details p { margin: 0 14px 14px; }
  .faq details p::before { display: none; }

  /* فرم سفارش موبایل */
  .order-panel { margin-top: 104px; border-radius: 22px; }
  .order-bot { width: 112px; inset-inline-end: 10px; }
  .ob-say { max-width: 190px; font-size: .8rem; padding: 8px 12px; top: 4px; }
  .contact li { font-size: .88rem; }
}
@media (max-width: 420px) {
  .chat-screen { height: 400px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* ==========================================================
   موبایل به سبک اپلیکیشن: هدر شناور، منوی کاشی‌ای، نوار پایین
   ========================================================== */
.am-open, .app-menu, .app-tabbar { display: none; }

@media (max-width: 900px) {
  :root { --header-h: 76px; }

  /* ---------- هدر شناور ---------- */
  .site-header {
    position: fixed; inset-inline: 0; top: 0;
    height: var(--header-h); padding: 10px 12px 0;
    background: transparent; border-bottom: 0; pointer-events: none;
  }
  /* هدر روی محتوا شناور است؛ بخش اول هر صفحه زیر آن شروع می‌شود */
  .hero { padding-top: calc(var(--header-h) + 24px); }
  .blog-page { padding-top: calc(var(--header-h) + 20px); }
  .art-hero { padding-top: calc(var(--header-h) + 18px); }
  .header-in {
    width: 100%; height: 58px; padding-inline: 16px 8px; gap: 12px; pointer-events: auto;
    justify-content: space-between;
    background: rgba(9, 36, 79, .88); border: 1px solid rgba(255, 255, 255, .16); border-radius: 20px;
    box-shadow: 0 14px 34px -16px rgba(3, 12, 30, .6), inset 0 1px 0 rgba(255, 255, 255, .06);
    -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  }
  .brand img { height: 38px; }
  .nav, .menu-btn { display: none !important; }

  .am-open {
    display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0;
    border: 0; border-radius: 14px; background: var(--green-bright); color: var(--navy);
    box-shadow: 0 8px 20px -8px rgba(7, 173, 126, .8);
    transition: transform .2s; -webkit-tap-highlight-color: transparent;
  }
  .am-open:active { transform: scale(.92); }

  /* فاصله برای نوار پایین: فوتر زیر نوار ادامه پیدا می‌کند */
  .footer-bottom { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }

  /* ---------- منوی کاشی‌ای ---------- */
  .app-menu { display: block; position: fixed; inset: 0; z-index: 90; }
  .app-menu[hidden] { display: none; }
  html.am-lock, html.am-lock body { overflow: hidden; }

  .am-backdrop {
    position: absolute; inset: 0; background: rgba(3, 12, 30, .55);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    opacity: 0; transition: opacity .3s ease;
  }
  .am-sheet {
    position: relative; margin: 10px 12px; max-height: calc(100% - 20px); overflow-y: auto;
    padding: 16px 14px 14px; border-radius: 26px; color: #fff;
    background:
      radial-gradient(70% 50% at 100% 0%, rgba(7, 173, 126, .28), transparent 70%),
      radial-gradient(60% 50% at 0% 100%, rgba(60, 120, 230, .26), transparent 70%),
      linear-gradient(170deg, #0b2a5c, var(--navy) 60%, #061a3b);
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .7);
    opacity: 0; transform: translateY(-16px) scale(.98);
    transition: opacity .3s ease, transform .35s cubic-bezier(.2, .9, .3, 1.1);
  }
  .app-menu.is-open .am-backdrop { opacity: 1; }
  .app-menu.is-open .am-sheet { opacity: 1; transform: none; }

  .am-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding-inline: 4px; }
  .am-title { display: inline-flex; align-items: center; gap: 10px; font-size: 1.02rem; font-weight: 800; }
  .am-title img { width: 30px; height: 30px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(7, 173, 126, .25); }
  .am-close {
    display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0;
    border-radius: 14px; background: #fff; color: var(--navy);
    -webkit-tap-highlight-color: transparent;
  }

  .am-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .am-tile {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    min-height: 98px; padding: 14px 6px; border-radius: 18px; text-align: center;
    background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .1);
    color: #e3eaf6; text-decoration: none !important;
    opacity: 0; transform: translateY(8px);
    transition: opacity .35s ease, transform .35s ease, background-color .2s, border-color .2s;
    transition-delay: calc(var(--k, 0) * 25ms + 60ms);
    -webkit-tap-highlight-color: transparent;
  }
  .app-menu.is-open .am-tile { opacity: 1; transform: none; }
  .am-tile:active { background: rgba(255, 255, 255, .09); }
  .am-tile-ico {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
    background: rgba(7, 173, 126, .14); color: var(--green-bright);
  }
  .am-tile-label { font-size: .84rem; font-weight: 600; line-height: 1.5; }
  .am-tile.is-on { background: rgba(7, 173, 126, .14); border-color: rgba(7, 173, 126, .55); color: #fff; }
  .am-tile.is-on .am-tile-ico { background: var(--green-bright); color: var(--navy); }

  .am-cta {
    display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px;
    min-height: 56px; border-radius: 18px; font-weight: 800; font-size: 1rem;
    background: var(--green-bright); color: var(--navy); text-decoration: none !important;
    box-shadow: 0 16px 30px -14px rgba(7, 173, 126, .85);
  }

  /* ---------- نوار پایین ---------- */
  .app-tabbar {
    position: fixed; z-index: 60; inset-inline: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
    height: 66px; padding: 0 6px 8px; border-radius: 24px;
    background: rgba(255, 255, 255, .84); border: 1px solid rgba(255, 255, 255, .7);
    box-shadow: 0 18px 40px -14px rgba(3, 12, 30, .45), 0 0 0 1px rgba(7, 31, 69, .06);
    -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
    transition: transform .3s ease, opacity .3s ease;
  }
  html.is-typing .app-tabbar, html.am-lock .app-tabbar { transform: translateY(140%); opacity: 0; pointer-events: none; }

  .tb-item, .tb-cta {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px;
    color: #52627d; font-size: .7rem; font-weight: 600; line-height: 1.4; text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
  }
  .tb-item { padding-top: 8px; transition: color .25s; }
  .tb-item .am-ico { transition: transform .25s; }
  .tb-item::before {                     /* نشانگر بخش فعال */
    content: ""; position: absolute; top: -1px; width: 18px; height: 3px; border-radius: 0 0 3px 3px;
    background: var(--green); transform: scaleX(0); transition: transform .25s;
  }
  .tb-item.is-on { color: var(--green); }
  .tb-item.is-on::before { transform: scaleX(1); }
  .tb-item.is-on .am-ico { transform: translateY(-1px); }

  .tb-cta { color: var(--navy); font-weight: 800; }
  .tb-cta-btn {
    position: relative; display: grid; place-items: center; width: 58px; height: 58px; margin-top: -30px;
    border-radius: 50%; color: var(--navy);
    background: linear-gradient(145deg, #14d19a, var(--green-bright));
    box-shadow: 0 0 0 5px rgba(255, 255, 255, .92), 0 14px 26px -8px rgba(7, 173, 126, .9);
    transition: transform .2s;
  }
  .tb-cta-btn::after {                   /* حلقهٔ تپنده */
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    border: 2px solid var(--green-bright); animation: tb-ring 2.4s ease-out infinite;
  }
  @keyframes tb-ring { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
  .tb-cta:active .tb-cta-btn { transform: scale(.92); }
  .tb-cta.is-on .tb-cta-btn::after { animation-duration: 1.2s; }
}
/* ==========================================================
   نظر مشتری‌ها در موبایل: بدون اسکرول تودرتو (رفع کندی اسکرول)
   پیام‌ها با اسکرول خود صفحه دیده می‌شوند؛ بقیه با «نظرهای بیشتر»
   ========================================================== */
@media (max-width: 860px) {
  .chat-body {
    max-height: none; overflow: visible; overscroll-behavior: auto;
    background-image: none; background-color: #edf2f8;
  }
  .msg-b { box-shadow: 0 1px 2px rgba(7, 31, 69, .08); transition: none; }
  .msg-b:hover { transform: none; box-shadow: 0 1px 2px rgba(7, 31, 69, .08); }
  .chat-body.is-clamped .msg-r:nth-of-type(n+5),
  .chat-body.is-clamped .chat-typing { display: none; }
  .chat-more {
    align-self: center; display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; padding: 6px 18px;
    font: inherit; font-size: .86rem; font-weight: 700; color: var(--navy); cursor: pointer;
    background: #fff; border: 1px solid #d6e0ec; border-radius: 999px; box-shadow: 0 1px 2px rgba(7, 31, 69, .06);
    -webkit-tap-highlight-color: transparent;
  }
  .chat-more:active { transform: scale(.97); }
}
@media (min-width: 861px) { .chat-more { display: none; } }
