/* سند ۱۵ (H8) — «رضایت مشتری»: شبکه‌ی مربعی شبیه اینستاگرام + نمایشگر. صفحه‌ی /testimonials و بخشِ صفحه‌ی اول.
   رنگ‌ها از متغیرهای تم می‌آیند (روز/شب). شبکه‌ی سه‌ستونه روی گوشی، چهار و پنج ستونه روی دسکتاپ. */
.tm-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}
@media(min-width:700px){.tm-grid{grid-template-columns:repeat(4,1fr);gap:10px}}
@media(min-width:1100px){.tm-grid{grid-template-columns:repeat(5,1fr)}}
.tm-grid[hidden],.tm-empty[hidden],.tm-loading[hidden]{display:none!important}
.tm-cell{position:relative;display:block;width:100%;padding:0;margin:0;border:0;border-radius:4px;overflow:hidden;cursor:pointer;
  aspect-ratio:1/1;background:var(--line-2);font:inherit;color:inherit}
.tm-cell:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.tm-thumb{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s}
.tm-cell:hover .tm-thumb{transform:scale(1.04)}
.tm-play{position:absolute;top:8px;left:8px;width:26px;height:26px;border-radius:50%;background:rgba(var(--nvr-0a101c,10,16,28),.62);color:#fff;
  display:flex;align-items:center;justify-content:center;font-size:11px;line-height:1;pointer-events:none}
.tm-empty,.tm-loading{text-align:center;color:var(--text-dim);padding:56px 18px;border:1px dashed var(--line-2);border-radius:16px;line-height:2}
.tm-empty b{display:block;color:var(--text);font-size:17px;margin-bottom:6px}

/* بخشِ صفحه‌ی اول */
.tm-home[hidden]{display:none!important}
.tm-home .head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:28px}
.tm-home .more-link{color:var(--gold);font-size:13.5px;font-weight:700;white-space:nowrap;text-decoration:none}
.tm-home .more-link:hover{text-decoration:underline}

/* نمایشگر */
html.tm-lock{overflow:hidden}
.tm-lb{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2000;display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:56px 14px 18px;background:rgba(var(--nvr-0a101c,10,16,28),.94)}
.tm-lb[hidden]{display:none!important}
.tm-lb-stage{display:flex;align-items:center;justify-content:center;width:100%;max-width:960px;min-height:0}
.tm-lb-media{max-width:100%;max-height:72vh;border-radius:10px;background:#000;display:block}
.tm-lb-info{max-width:640px;margin-top:14px;text-align:center;color:#e8eef8;line-height:1.95}
.tm-lb-info p{margin:0}
.tm-lb-info p[hidden]{display:none}
.tm-lb-name{color:#eed680;font-size:13px;font-weight:700}
.tm-lb-close,.tm-lb-nav{position:absolute;border:0;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;cursor:pointer;
  width:42px;height:42px;font-size:20px;line-height:1;display:flex;align-items:center;justify-content:center}
.tm-lb-close:hover,.tm-lb-nav:hover{background:rgba(255,255,255,.26)}
.tm-lb-close{top:12px;right:12px}
.tm-lb-nav{top:50%;margin-top:-21px}
.tm-lb-prev{right:10px}
.tm-lb-next{left:10px}
.tm-lb-nav[hidden]{display:none!important}
