/* ==========================================================================
   DahuaNet — pages/content.css
   بلاگ (فهرست، مطلب، دیدگاه‌ها)، برگه‌های ثابت، پرسش‌های متداول و تماس با ما.
   ========================================================================== */

/* ---------- سربرگ مجله ---------- */
.mag-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(28px, 5vw, 56px) clamp(22px, 3vw, 34px);
  background: var(--grad-night);
  color: var(--on-dark-muted);
}
.mag-head::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  inset-inline-start: -160px;
  top: -260px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 30px, var(--ring-line) 30px 31px);
}
.mag-head .crumbs, .mag-head .crumbs a { color: var(--on-dark-muted); }
.mag-head .crumbs .icon { color: var(--on-dark-muted); }
.mag-head .crumbs [aria-current="page"] { color: #fff; }
.mag-head h1 { color: #fff; font-size: var(--fs-3xl); }
.mag-head p { max-width: 62ch; }
.mag-head__inner { display: grid; gap: 14px; }
.mag-head .search-pill { max-width: 520px; background: var(--glass); box-shadow: inset 0 0 0 1.5px var(--glass-line); }
.mag-head .search-pill input { color: #fff; }
.mag-head .search-pill input::placeholder { color: var(--on-dark-muted); }
.mag-head .search-pill .icon { color: var(--on-dark-muted); }
.mag-head .search-pill:focus-within { background: var(--glass-strong); box-shadow: inset 0 0 0 1.5px #fff; }
.mag-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.mag-cats .chip { border-color: var(--glass-line); background: var(--glass); color: var(--on-dark); }
.mag-cats .chip:hover { background: var(--glass-strong); }
.mag-cats .chip.is-active { border-color: transparent; background: #fff; color: var(--on-white-ink); }

/* ---------- فهرست مطالب ---------- */
.blog { display: grid; gap: 28px; padding-top: 32px; }
.blog__grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.blog__count { color: var(--fg-muted); font-size: var(--fs-sm); }
.post-feature {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--bg);
  transition: box-shadow var(--dur-2);
}
@media (min-width: 861px) { .post-feature { grid-template-columns: 1.25fr 1fr; } }
.post-feature:hover { box-shadow: var(--sh-2); }
.post-feature__media { display: block; aspect-ratio: 16 / 10; max-width: 100%; overflow: hidden; background: var(--grad-media); }
.post-feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-feature:hover .post-feature__media img { transform: scale(1.04); }
.post-feature__media .post-card__placeholder .icon { width: 96px; height: 96px; }
.post-feature__body { display: grid; align-content: center; gap: 12px; padding: clamp(20px, 3vw, 36px); }
.post-feature__title { font-size: var(--fs-2xl); line-height: 1.6; }
.post-feature__title a::after { content: ""; position: absolute; inset: 0; }
.post-feature__title a:hover { color: var(--primary); }
.post-feature__excerpt { color: var(--fg-muted); line-height: 2; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: var(--fg-subtle); font-size: var(--fs-xs); }
.post-meta span, .post-meta time { display: inline-flex; align-items: center; gap: 6px; }
.post-meta .icon { width: 15px; height: 15px; }

/* ---------- صفحه‌ی مطلب ---------- */
.read-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 120;
  height: 3px;
  background: var(--grad-brand);
  transform: scaleX(var(--dn-p, 0));
  transform-origin: right;
  pointer-events: none;
}
.article-head { padding-block: clamp(24px, 4vw, 44px) 0; }
.article-head__inner { display: grid; gap: 14px; max-width: 860px; }
.article-head h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.55; text-wrap: balance; }
.article-head__excerpt { color: var(--fg-muted); font-size: var(--fs-md); line-height: 2; max-width: 70ch; }
.article-hero {
  margin-top: 24px;
  aspect-ratio: 21 / 9;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--grad-media);
}
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .article-hero { aspect-ratio: 16 / 10; } }

.article {
  display: grid;
  gap: 32px;
  align-items: start;
  padding-top: 32px;
}
@media (min-width: 1025px) {
  .article { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; }
  .article__aside { position: sticky; top: calc(var(--header-offset, 80px) + 16px); }
}
.article__main { display: grid; gap: 28px; min-width: 0; }
.article__aside { display: grid; gap: 14px; min-width: 0; }
.article .prose { max-width: 72ch; font-size: 1.04rem; }


.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--bg); }
.share__label { margin-inline-end: auto; color: var(--fg-muted); font-size: var(--fs-xs); font-weight: 700; }
.advice {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-radius: var(--r-xl);
  background: var(--grad-night);
  color: var(--on-dark-muted);
  font-size: var(--fs-sm);
}
.advice strong { color: #fff; font-size: var(--fs-md); }

.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 18px; border-top: 1px dashed var(--line); }
.tags__label { display: inline-flex; align-items: center; gap: 6px; color: var(--fg-subtle); font-size: var(--fs-xs); font-weight: 700; }

.author-box { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--r-xl); background: var(--bg-soft); }
.author-box__avatar { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 16px; background: var(--grad-brand); color: var(--on-primary); font-weight: 900; }
.author-box p { color: var(--fg-muted); font-size: var(--fs-xs); }

/* ---------- دیدگاه‌ها ---------- */
.comments { display: grid; gap: 18px; }
.comments__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.comments__head h2 { display: flex; align-items: center; gap: 10px; font-size: var(--fs-xl); }
.comments__head h2 .icon { color: var(--primary); }
.comment-list { display: grid; gap: 12px; }
.comment {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--bg);
}
.comment.is-new { border-color: var(--aqua); animation: dn-flow-in .5s var(--ease) both; }
.comment__avatar {
  display: grid;
  place-items: center;
  grid-row: 1 / span 2;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--bg-tint);
  color: var(--primary);
  font-weight: 900;
}
.comment__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.comment__name { font-weight: 800; }
.comment__date { color: var(--fg-subtle); font-size: var(--fs-xs); }
.comment__text { color: var(--fg-muted); line-height: 2; white-space: pre-line; overflow-wrap: anywhere; }
.comment-form { display: grid; gap: 14px; padding: clamp(18px, 2.4vw, 26px); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--bg-soft); }
.comment-form__row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.comment-form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.comment-form .textarea { min-height: 120px; }
@keyframes dn-flow-in { from { opacity: 0; transform: translateY(6px); } }

/* ---------- برگه‌های ثابت ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  inset-inline-end: -140px;
  top: -200px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 32px, rgba(45, 212, 191, .07) 32px 33px);
}
.page-layout { display: grid; gap: 32px; align-items: start; padding-top: 32px; }
@media (min-width: 1025px) {
  .page-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 48px; }
  .page-layout__aside { position: sticky; top: calc(var(--header-offset, 80px) + 16px); }
}
.page-layout__main { display: grid; gap: 28px; min-width: 0; }
.page-layout__aside { display: grid; gap: 14px; min-width: 0; }
.side-nav { padding: 8px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--bg); }
.side-nav__title { padding: 8px 12px; color: var(--fg-subtle); font-size: var(--fs-xs); font-weight: 800; }
.side-nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: var(--r); color: var(--fg-muted); font-size: var(--fs-sm); font-weight: 700; }
.side-nav a:hover { background: var(--bg-soft); color: var(--fg); }
.side-nav a[aria-current] { background: var(--bg-tint); color: var(--primary); }
.page-image { max-width: 100%; border-radius: var(--r-xl); }
.feature-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); padding: clamp(20px, 3vw, 30px); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--bg); }

/* پرسش‌های متداول: content.js هر h3 و متن پس از آن را به یک بخش بازشونده تبدیل می‌کند */
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); transition: border-color var(--dur-2), box-shadow var(--dur-2); }
.faq-item[open] { border-color: var(--sky-200); box-shadow: var(--sh-1); }
.faq-item > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  font-weight: 800;
  line-height: 1.8;
  cursor: pointer;
  list-style: none;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "+";
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  margin-inline-start: auto;
  border-radius: 50%;
  background: var(--bg-tint);
  color: var(--primary);
  font-weight: 900;
  transition: transform var(--dur-2) var(--ease);
}
.faq-item[open] > summary::after { transform: rotate(45deg); }
.faq-item__body { padding: 0 18px 18px; color: var(--fg-muted); line-height: 2; }
.faq-item__body > * + * { margin-top: .8em; }

/* ---------- تماس با ما ---------- */
.contact { display: grid; gap: 28px; align-items: start; padding-top: 32px; }
@media (min-width: 961px) { .contact { grid-template-columns: 380px minmax(0, 1fr); gap: 36px; } }
.contact__cards { display: grid; gap: 12px; }
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--bg);
  transition: border-color var(--dur-2), transform var(--dur-2) var(--ease);
}
a.contact-card:hover { border-color: var(--sky-200); transform: translateY(-2px); }
.contact-card__icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 15px; background: var(--bg-tint); color: var(--primary); }
.contact-card__body { display: grid; gap: 2px; min-width: 0; }
.contact-card__label { color: var(--fg-subtle); font-size: var(--fs-xs); font-weight: 700; }
.contact-card__value { font-weight: 800; line-height: 1.9; overflow-wrap: anywhere; }
.contact-card--hot { background: var(--grad-night); border-color: transparent; color: var(--on-dark-muted); }
.contact-card--hot .contact-card__icon { background: rgba(255, 255, 255, .1); color: #fff; }
.contact-card--hot .contact-card__value { color: #fff; font-size: var(--fs-lg); }
.contact-card--hot .contact-card__label { color: var(--on-dark-muted); }
.contact-socials { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-form { display: grid; gap: 16px; padding: clamp(20px, 3vw, 30px); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--bg); }
.contact-form h2 { display: flex; align-items: center; gap: 10px; font-size: var(--fs-xl); }
.contact-form h2 .icon { color: var(--primary); }
.contact-form__row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.contact-form__row > .field { align-content: start; }
.subject-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.subject-chips input { position: absolute; opacity: 0; pointer-events: none; }
.subject-chips input:checked + .chip { border-color: transparent; background: var(--grad-brand); color: var(--on-primary); }
.subject-chips input:focus-visible + .chip { outline: 2px solid var(--aqua); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .read-progress { display: none; }
}

/* یک فهرست مطالب در هر اندازه: کنار متن در دسکتاپ، بالای متن در موبایل */
@media (min-width: 1025px) { [data-toc-inline] { display: none; } }
@media (max-width: 1024px) { .article__aside [data-toc] { display: none; } }

.blog-empty { display: grid; justify-items: center; gap: 10px; padding: clamp(36px, 6vw, 64px) 20px; border: 1px dashed var(--line-strong); border-radius: var(--r-xl); text-align: center; }
.blog-empty__icon { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--bg-tint); color: var(--primary); }
.blog-empty__icon .icon { width: 32px; height: 32px; }
.blog-empty p { color: var(--fg-muted); font-size: var(--fs-sm); }

.toc ol, .comment-list { list-style: none; margin: 0; padding: 0; }


/* ==========================================================================
   سربرگ تصویری برگه‌ها (درباره ما، همکاری با نصابان، تماس با ما) — _PageArt
   ========================================================================== */
.art-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(28px, 5vw, 64px) clamp(84px, 9vw, 120px);
  border-radius: 0 0 var(--r-2xl) var(--r-2xl);
  background: var(--noise), var(--grad-night);
  color: var(--on-dark);
}
.art-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 620px;
  height: 620px;
  left: -200px;
  top: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 234, 212, .35), transparent 65%);
  filter: blur(20px);
  animation: dn-drift 20s ease-in-out infinite;
}
.art-hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 25% 50%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 80% at 25% 50%, #000 15%, transparent 75%);
}
.art-hero__inner { display: grid; align-items: center; gap: clamp(24px, 4vw, 56px); }
@media (min-width: 960px) { .art-hero__inner { grid-template-columns: 1.1fr .9fr; } }
.art-hero__copy { display: grid; justify-items: start; gap: 18px; }
.art-hero h1 { color: #fff; font-size: var(--fs-3xl); line-height: 1.4; }
.art-hero p { max-width: 58ch; color: var(--on-dark-muted); font-size: var(--fs-lg); }
.art-hero .crumbs, .art-hero .crumbs a { color: var(--on-dark-muted); }
.art-hero .crumbs [aria-current="page"] { color: #fff; }
.art-hero__visual { width: min(100%, 480px); margin-inline: auto; transition: translate .5s var(--ease); }
.art-hero__online { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .25); animation: dn-pulse 1.6s ease-in-out infinite; }
.js .art-hero .hero__in { animation: dn-page-in .9s var(--ease-out) calc(var(--d, 0) * 110ms + 100ms) both; }
@keyframes dn-page-in { from { opacity: 0; transform: translateY(24px); filter: blur(8px); } }
@media (max-width: 959px) { .art-hero__visual { max-width: 340px; } }

/* ---------- تصویرهای متحرک ---------- */
.page-art svg { width: 100%; height: auto; overflow: visible; }
.page-art * { transform-box: fill-box; }
/* درباره ما: شهر زیر نظر */
.pa-orbit { transform-origin: center; animation: dn-spin 40s linear infinite; }
.pa-link { stroke-dasharray: 6 10; animation: pa-flow 1.4s linear infinite; }
@keyframes pa-flow { to { stroke-dashoffset: -32; } }
.pa-win { fill: #ffffff; opacity: .16; animation: pa-win 6s ease-in-out var(--d, 0s) infinite; }
@keyframes pa-win { 0%, 40%, 100% { fill: #ffffff; opacity: .16; } 50%, 85% { fill: #fde68a; opacity: .9; } }
.pa-cam { transform-box: view-box; animation: pa-sweep 7s ease-in-out var(--d, 0s) infinite; }
@keyframes pa-sweep { 0%, 100% { transform: rotate(-22deg); } 50% { transform: rotate(22deg); } }
.pa-led { animation: dn-pulse 1.2s ease-in-out infinite; }
.pa-shield { transform-origin: center; animation: pa-float 5s ease-in-out infinite; }
@keyframes pa-float { 50% { transform: translateY(-8px); } }
.pa-check { stroke-dasharray: 40; stroke-dashoffset: 40; animation: pa-check 4s var(--ease) infinite; }
@keyframes pa-check { 15%, 80% { stroke-dashoffset: 0; } 95%, 100% { stroke-dashoffset: 40; } }
.pa-ping { transform-origin: center; animation: pa-ping 2.6s var(--ease) infinite; }
@keyframes pa-ping { from { transform: scale(1); opacity: .8; } to { transform: scale(2.4); opacity: 0; } }
/* همکاری با نصابان: نصب دوربین */
.pi-data { animation: pa-flow 1s linear infinite reverse; }
.pi-cam { transform-origin: 300px 100px; transform-box: view-box; animation: pi-pan 6s ease-in-out infinite; }
@keyframes pi-pan { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(6deg); } }
.pi-fov { animation: pi-fov 2.4s ease-in-out infinite alternate; }
@keyframes pi-fov { from { opacity: .45; } to { opacity: 1; } }
.pi-blink { animation: dn-pulse 1.2s ease-in-out var(--d, 0s) infinite; }
.pi-float { animation: pi-float 5s ease-in-out var(--d, 0s) infinite; }
@keyframes pi-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(-6deg); } }
.pi-card { animation: pa-float 6s ease-in-out -1s infinite; }
.pi-tick { stroke-dasharray: 20; stroke-dashoffset: 20; animation: pi-tick 4.5s var(--ease) var(--d, 0s) infinite; }
@keyframes pi-tick { 10%, 70% { stroke-dashoffset: 0; } 85%, 100% { stroke-dashoffset: 20; } }
/* تماس با ما: پشتیبانی */
.pc-wave { transform-origin: center; animation: pc-wave 3s var(--ease) var(--d, 0s) infinite; }
@keyframes pc-wave { from { transform: scale(1); opacity: .6; } to { transform: scale(2); opacity: 0; } }
.pc-headset { transform-origin: center; animation: pa-float 4s ease-in-out infinite; }
.pc-bubble { transform-origin: center; animation: pc-pop 7s var(--ease-spring) infinite; }
.pc-bubble--2 { animation-delay: 1.2s; }
.pc-bubble--3 { animation-delay: 2.4s; }
@keyframes pc-pop { 0% { transform: scale(0); opacity: 0; } 8%, 80% { transform: scale(1); opacity: 1; } 90%, 100% { transform: scale(.6); opacity: 0; } }
.pc-dot { animation: pc-dot 1s ease-in-out var(--d, 0s) infinite; }
@keyframes pc-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.pc-pin path, .pc-pin circle { animation: pc-bounce 2.2s var(--ease) infinite; }
.pc-pin-shadow { transform-origin: center; animation: pc-shadow 2.2s var(--ease) infinite; }
@keyframes pc-bounce { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-16px); } }
@keyframes pc-shadow { 0%, 100% { transform: scale(1); opacity: .35; } 40% { transform: scale(.6); opacity: .15; } }
.pc-mail { animation: pc-mail 6s ease-in-out infinite; }
@keyframes pc-mail { 0%, 100% { transform: translate(0, 0) rotate(-4deg); } 50% { transform: translate(-10px, -14px) rotate(6deg); } }

/* ---------- نوار ویژگی‌ها روی لبه‌ی سربرگ ---------- */
.page-float { position: relative; z-index: 2; margin-top: clamp(-72px, -6vw, -48px); }
.page-float__bar, .contact-strip {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  padding: 12px;
  border-radius: var(--r-xl);
  background: var(--bg);
  box-shadow: var(--sh-3), inset 0 0 0 1px var(--line);
}
.page-float__bar .feature { padding: 14px; border-radius: var(--r-lg); transition: background var(--dur-3); }
.page-float__bar .feature:hover { background: var(--bg-soft); }
.contact-strip .contact-card { border-color: transparent; background: var(--bg-soft); }
.contact-strip .contact-card--hot { background: var(--noise), var(--grad-night); }
.contact-strip .contact-card__value { font-size: var(--fs-sm); }
.contact-strip .contact-card--hot .contact-card__value { font-size: var(--fs-lg); }
.contact-strip a[href^="mailto"] .contact-card__value { font-size: var(--fs-xs); overflow-wrap: anywhere; word-break: break-all; }

/* ---------- آمار ---------- */
.page-stats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  padding-top: clamp(28px, 4vw, 44px);
}
.page-stat {
  position: relative;
  overflow: hidden;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 22px 14px;
  border-radius: var(--r-xl);
  background: var(--grad-soft);
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: center;
}
.page-stat::after { content: ""; position: absolute; inset-inline: 30%; bottom: 0; height: 4px; border-radius: 4px 4px 0 0; background: var(--grad-spectrum); }
.page-stat__value { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: var(--fs-3xl); font-weight: 900; line-height: 1.3; font-variant-numeric: tabular-nums; }
.page-stat__label { color: var(--fg-muted); font-size: var(--fs-sm); font-weight: 700; }
.page-section { padding-top: clamp(40px, 6vw, 72px); }

/* ---------- متن برگه در کارت ---------- */
.prose-card {
  max-width: none !important;
  padding: clamp(20px, 3.4vw, 40px);
  border-radius: var(--r-xl);
  background: var(--bg);
  box-shadow: var(--sh-2), inset 0 0 0 1px var(--line);
}
.prose-card h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-xl);
}
.prose-card h2::before { content: ""; position: static; flex: none; width: 10px; height: 26px; margin: 0; border-radius: 6px; box-shadow: none; background: var(--grad-brand); }
.prose-card h2::after { content: none; }
.prose-card h2 { padding-bottom: 0; padding-inline-start: 0; }
/* کارت برگه طراحی فهرست خودش را دارد (ردیف با تیک)، نه کادر فهرست متن عمومی */
.prose-card > ul { padding: 0; border: 0; background: none; box-shadow: none; }
.prose-card ul li + li { margin-top: 0; }
.prose-card ul li::before { box-shadow: none; }
.prose-card ul { list-style: none; padding-inline-start: 0; display: grid; gap: 8px; }
.prose-card ul li { position: relative; padding: 8px 40px 8px 14px; border-radius: var(--r); background: var(--bg-soft); }
.prose-card ul li::before {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--grad-brand);
}
.prose-card ul li::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 6px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translateY(-62%) rotate(45deg);
}
[dir="ltr"] .prose-card ul li { padding: 8px 14px 8px 40px; }
[dir="ltr"] .prose-card ul li::before { right: auto; left: 12px; }
[dir="ltr"] .prose-card ul li::after { right: auto; left: 18px; }

/* ---------- دسته‌ها در «درباره ما» ---------- */
.page-cats { display: grid; gap: 16px; }
.page-cats__title { display: flex; align-items: center; gap: 10px; font-size: var(--fs-xl); }
.page-cats__title .icon { color: var(--brand); }
.page-cats__grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.page-cat {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--r-lg);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: var(--fs-sm);
  font-weight: 800;
  transition: transform var(--dur-3) var(--ease), box-shadow var(--dur-3);
}
.page-cat:hover { transform: translateY(-4px); box-shadow: var(--sh-2), inset 0 0 0 1.5px var(--sky); }
.page-cat__img { display: grid; place-items: center; flex: none; width: 58px; height: 58px; overflow: hidden; border-radius: 16px; background: var(--grad-media); color: var(--teal-700); }
.page-cat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.page-cat:hover .page-cat__img img { transform: scale(1.12); }
.page-cat__name { flex: 1; line-height: 1.6; }
.page-cat__arrow { color: var(--fg-subtle); transition: transform var(--dur-2), color var(--dur-2); }
.page-cat:hover .page-cat__arrow { color: var(--teal-700); transform: translateX(-4px); }

/* ---------- تماس با ما ---------- */
.contact__side { display: grid; gap: 14px; }
@media (min-width: 961px) { .contact__side { position: sticky; top: calc(var(--header-offset, 80px) + 16px); } }
.contact-card__icon--ring .icon { transform-origin: 50% 50%; }
.contact-card:hover .contact-card__icon--ring .icon { animation: pc-ring .8s ease-in-out infinite; }
@keyframes pc-ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-16deg); } 40% { transform: rotate(14deg); } 60% { transform: rotate(-10deg); } 80% { transform: rotate(6deg); } }
.contact-card { transition: border-color var(--dur-2), transform var(--dur-2) var(--ease), box-shadow var(--dur-2); }
a.contact-card:hover { box-shadow: var(--sh-2); }

.map-card { overflow: hidden; border-radius: var(--r-xl); background: var(--bg); box-shadow: var(--sh-2), inset 0 0 0 1px var(--line); }
.map-card__map { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.map-card__map svg { width: 100%; height: 100%; }
.map-card__route { animation: pa-flow 1.2s linear infinite; }
.map-card__pin {
  position: absolute;
  left: 49%;
  top: 44%;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -100%);
}
.map-card__pin::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50% 50% 50% 0;
  background: #ef4444;
  box-shadow: 0 8px 18px -6px rgba(239, 68, 68, .8);
  transform: rotate(-45deg);
  animation: pc-bounce 2s var(--ease) infinite;
}
.map-card__pin::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: #fff; animation: pc-bounce 2s var(--ease) infinite; }
.map-card__pin span { position: absolute; left: 50%; bottom: -22px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; border: 2px solid #ef4444; animation: pa-ping 2s var(--ease) infinite; }
.map-card__body { display: grid; gap: 10px; padding: 16px 18px 18px; }
.map-card__label { display: inline-flex; align-items: center; gap: 6px; color: var(--fg-subtle); font-size: var(--fs-xs); font-weight: 800; }
.map-card__label .icon { color: #ef4444; }
.map-card__address { font-weight: 800; line-height: 1.9; }

.contact-social-card { display: grid; gap: 10px; padding: 16px 18px; border-radius: var(--r-xl); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.contact-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 8px;
  border-radius: var(--r-pill);
  background: var(--bg-soft);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: var(--fs-sm);
  font-weight: 700;
  transition: background var(--dur-2), color var(--dur-2), transform var(--dur-2) var(--ease-spring);
}
.contact-social .icon { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--grad-brand); color: #fff; }
.contact-social:hover { background: var(--bg-tint); color: var(--teal-700); transform: translateY(-3px); }

.contact-form { position: relative; overflow: hidden; box-shadow: var(--sh-2); border-color: transparent; }
.contact-form::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 5px; background: var(--grad-spectrum); background-size: 200% 100%; animation: dn-gradient-pan 4s linear infinite; }
.contact-form__head { display: flex; align-items: center; gap: 14px; }
.contact-form__head h2 { font-size: var(--fs-xl); }
.contact-form__head p { color: var(--fg-muted); font-size: var(--fs-sm); }
.contact-form__icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 16px; background: var(--grad-brand); color: #fff; box-shadow: var(--sh-glow); }
.contact-form__icon .icon { width: 26px; height: 26px; }

@media (prefers-reduced-motion: reduce) {
  .page-art *, .art-hero::before, .map-card__pin::before, .map-card__pin::after, .map-card__pin span, .map-card__route { animation: none !important; }
  .pa-win { opacity: .5; }
  .pa-check, .pi-tick { stroke-dashoffset: 0; }
  .pc-bubble { opacity: 1; transform: none; }
}
@media (max-width: 560px) {
  .page-float__bar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 10px; }
  .page-float__bar .feature { flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px; text-align: center; }
  .page-float__bar .feature__icon { width: 46px; height: 46px; }
  .page-float__bar .feature__title { font-size: var(--fs-sm); }
  .page-float__bar .feature__text { display: none; }
}
