/* =====================================================================
 *  تمدن مروی — صفحهٔ اصلی سفارشی
 *  RTL-first · فارسی · واکنش‌گرا · سبک
 *  همهٔ سلکتورها زیر body.tm-home محدود شده‌اند تا با قالب تداخل نکنند.
 * ===================================================================== */

/* ---------- فونت وزیرمتن (خودمیزبان) ---------- */
@font-face{font-family:"Vazirmatn";src:url("fonts/vazirmatn-arabic-400.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F,U+2010-2011}
@font-face{font-family:"Vazirmatn";src:url("fonts/vazirmatn-latin-400.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Vazirmatn";src:url("fonts/vazirmatn-arabic-500.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F,U+2010-2011}
@font-face{font-family:"Vazirmatn";src:url("fonts/vazirmatn-latin-500.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Vazirmatn";src:url("fonts/vazirmatn-arabic-700.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F,U+2010-2011}
@font-face{font-family:"Vazirmatn";src:url("fonts/vazirmatn-latin-700.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Vazirmatn";src:url("fonts/vazirmatn-arabic-800.woff2") format("woff2");font-weight:800;font-style:normal;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F,U+2010-2011}
@font-face{font-family:"Vazirmatn";src:url("fonts/vazirmatn-latin-800.woff2") format("woff2");font-weight:800;font-style:normal;font-display:swap}

/* ---------- توکن‌ها ---------- */
body.tm-home{
  --tm-brand-900:#0b2540;
  --tm-brand-800:#123a63;
  --tm-brand-700:#1a4d82;
  --tm-brand-600:#1e5fa8;
  --tm-brand-500:#2f7bc9;
  --tm-brand-400:#5b9bd8;
  --tm-brand-300:#93bfe6;
  --tm-brand-200:#c7ddf3;
  --tm-brand-100:#e8f1fb;
  --tm-brand-50:#f4f9fd;
  --tm-gold:#c19a4b;
  --tm-ink:#22303f;
  --tm-ink-soft:#5b6b7e;
  --tm-surface:#ffffff;
  --tm-surface-2:#f6f9fc;
  --tm-line:#e3e9f2;
  --tm-radius:16px;
  --tm-radius-sm:11px;
  --tm-shadow-sm:0 6px 20px -12px rgba(11,37,64,.28);
  --tm-shadow:0 22px 48px -22px rgba(11,37,64,.32);
  --tm-container:1180px;
  --tm-pattern-light:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='46' viewBox='0 0 46 46'%3E%3Cg fill='none' stroke='%231e5fa8' stroke-width='1'%3E%3Cpath d='M23 2 28 18 44 23 28 28 23 44 18 28 2 23 18 18Z'/%3E%3Crect x='10' y='10' width='26' height='26' transform='rotate(45 23 23)'/%3E%3C/g%3E%3C/svg%3E");
  --tm-pattern-dark:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='46' viewBox='0 0 46 46'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1'%3E%3Cpath d='M23 2 28 18 44 23 28 28 23 44 18 28 2 23 18 18Z'/%3E%3Crect x='10' y='10' width='26' height='26' transform='rotate(45 23 23)'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- پایه ---------- */
body.tm-home *,body.tm-home *::before,body.tm-home *::after{box-sizing:border-box}
body.tm-home{
  margin:0;
  font-family:"Vazirmatn","Segoe UI",Tahoma,Arial,sans-serif;
  font-size:16px;
  line-height:1.85;
  color:var(--tm-ink);
  background:var(--tm-surface);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
body.tm-home img,body.tm-home svg{max-width:100%;height:auto}
body.tm-home svg{display:inline-block;vertical-align:middle}
body.tm-home a{color:inherit;text-decoration:none}
body.tm-home p{margin:0}
body.tm-home h1,body.tm-home h2,body.tm-home h3,body.tm-home h4{margin:0;line-height:1.5;font-weight:800;color:var(--tm-brand-900)}
body.tm-home ul{margin:0;padding:0;list-style:none}
body.tm-home dl,body.tm-home dd,body.tm-home dt{margin:0}
body.tm-home button{font:inherit;color:inherit;cursor:pointer}

@media (prefers-reduced-motion:no-preference){
  body.tm-home{scroll-behavior:smooth}
}

body.tm-home :focus-visible{outline:2px solid var(--tm-brand-600);outline-offset:3px;border-radius:3px}

.tm-visually-hidden,
.tm-home .tm-visually-hidden{
  position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}

/* ---------- چیدمان مشترک ---------- */
.tm-home .tm-container{max-width:var(--tm-container);margin-inline:auto;padding-inline:clamp(1rem,4vw,2rem)}
.tm-home .tm-section{padding-block:clamp(3.25rem,7.5vw,6rem);position:relative;scroll-margin-top:92px}

.tm-home .tm-eyebrow{
  margin:0 0 .6rem;font-weight:700;font-size:.82rem;letter-spacing:.04em;
  color:var(--tm-brand-600);
}
.tm-home .tm-title{font-size:clamp(1.5rem,3.4vw,2.25rem);color:var(--tm-brand-900)}
.tm-home .tm-section__head{max-width:640px;margin-bottom:clamp(2rem,4vw,3rem)}
.tm-home .tm-section__intro{margin-top:1rem;color:var(--tm-ink-soft);font-size:1.02rem}
.tm-home .tm-ornament{display:block;margin:1rem 0 0;color:var(--tm-gold);line-height:0}
.tm-home .tm-ornament svg{width:140px;max-width:60%}

/* ---------- دکمه‌ها ---------- */
.tm-home .tm-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  min-height:48px;padding:.55rem 1.5rem;border-radius:12px;
  font-weight:700;font-size:.98rem;border:1.5px solid transparent;
  transition:transform .2s ease,box-shadow .2s ease,background-color .2s ease,border-color .2s ease,color .2s ease;
  will-change:transform;
}
.tm-home .tm-btn--primary{background:var(--tm-brand-600);color:#fff;box-shadow:0 12px 26px -14px rgba(30,95,168,.75)}
.tm-home .tm-btn--primary:hover{background:var(--tm-brand-700);transform:translateY(-2px);box-shadow:0 18px 34px -14px rgba(30,95,168,.8)}
.tm-home .tm-btn--ghost{background:transparent;color:var(--tm-brand-700);border-color:var(--tm-brand-200)}
.tm-home .tm-btn--ghost:hover{background:var(--tm-brand-50);border-color:var(--tm-brand-400);transform:translateY(-2px)}
.tm-home .tm-btn--light{background:#fff;color:var(--tm-brand-800)}
.tm-home .tm-btn--light:hover{background:var(--tm-brand-50);transform:translateY(-2px)}

.tm-home .tm-more{
  display:inline-flex;align-items:center;gap:.4rem;margin-top:1rem;
  color:var(--tm-brand-600);font-weight:700;font-size:.9rem;
}
.tm-home .tm-more svg{width:18px;height:18px;transition:transform .22s ease}
.tm-home .tm-more:hover svg{transform:translateX(-4px)}

/* ---------- پرش سریع ---------- */
.tm-home .tm-skip{
  position:absolute;inset-inline-start:1rem;top:-4rem;z-index:200;
  background:#fff;color:var(--tm-brand-800);font-weight:700;
  padding:.65rem 1.1rem;border-radius:10px;box-shadow:var(--tm-shadow-sm);
  transition:top .2s ease;
}
.tm-home .tm-skip:focus{top:1rem}

/* ---------- هدر ---------- */
.tm-home .tm-header{
  position:sticky;top:0;z-index:100;
  background:rgba(255,255,255,.92);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  border-bottom:1px solid var(--tm-line);
  transition:box-shadow .25s ease,background-color .25s ease;
}
.tm-home .tm-header.is-scrolled{box-shadow:0 10px 30px -18px rgba(11,37,64,.28);background:rgba(255,255,255,.97)}
.tm-home .tm-header__inner{display:flex;align-items:center;gap:1rem;min-height:74px}

.tm-home .tm-brand{display:inline-flex;align-items:center;gap:.7rem;margin-inline-end:auto}
.tm-home .tm-brand__mark{
  width:44px;height:44px;flex:none;display:grid;place-items:center;border-radius:12px;
  background:linear-gradient(150deg,var(--tm-brand-50),#fff);
  border:1px solid var(--tm-line);color:var(--tm-brand-600);
}
.tm-home .tm-brand__mark svg{width:26px;height:26px}
.tm-home .tm-brand__name{display:block;font-weight:800;font-size:1.12rem;color:var(--tm-brand-900);line-height:1.3}
.tm-home .tm-brand__tag{display:block;font-size:.72rem;font-weight:500;color:var(--tm-ink-soft)}

.tm-home .tm-nav ul{display:flex;align-items:center;gap:.15rem}
.tm-home .tm-nav a{
  display:block;padding:.55rem .8rem;border-radius:9px;
  font-weight:600;font-size:.95rem;color:var(--tm-ink);
  transition:color .2s ease,background-color .2s ease;
}
.tm-home .tm-nav a:hover{color:var(--tm-brand-700);background:var(--tm-brand-50)}
.tm-home .tm-nav a.is-active{color:var(--tm-brand-700);background:var(--tm-brand-100)}

.tm-home .tm-nav-toggle{
  display:none;width:46px;height:46px;flex:none;
  align-items:center;justify-content:center;
  border:1px solid var(--tm-line);border-radius:11px;background:#fff;color:var(--tm-brand-800);
}
.tm-home .tm-nav-toggle__close{display:none}
.tm-home .tm-header.is-open .tm-nav-toggle__open{display:none}
.tm-home .tm-header.is-open .tm-nav-toggle__close{display:inline-block}

/* ---------- هیرو ---------- */
.tm-home .tm-hero{
  background:linear-gradient(175deg,var(--tm-brand-50),#fff 62%);
  overflow:hidden;
}
.tm-home .tm-hero::before{
  content:"";position:absolute;inset:0;z-index:0;
  background-image:var(--tm-pattern-light);background-size:44px 44px;
  opacity:.05;pointer-events:none;
}
.tm-home .tm-hero__inner{
  position:relative;z-index:1;
  display:grid;grid-template-columns:1.08fr .92fr;gap:clamp(2rem,5vw,4rem);
  align-items:center;padding-block:clamp(2.5rem,7vw,5rem);
}
.tm-home .tm-hero__bismillah{
  display:inline-flex;align-items:center;gap:.55rem;margin:0 0 1.1rem;
  color:var(--tm-gold);font-size:1.02rem;font-weight:500;
}
.tm-home .tm-hero__title{
  font-size:clamp(1.9rem,4.7vw,3rem);line-height:1.55;color:var(--tm-brand-900);
}
.tm-home .tm-hero__lead{
  margin-top:1.15rem;max-width:52ch;
  font-size:clamp(1rem,2.1vw,1.15rem);color:var(--tm-ink-soft);
}
.tm-home .tm-hero__actions{display:flex;flex-wrap:wrap;gap:1rem;margin-top:1.8rem}
.tm-home .tm-hero__stats{display:flex;flex-wrap:wrap;gap:1.75rem;margin-top:2.2rem}
.tm-home .tm-hero__stat dt{font-size:1.35rem;font-weight:800;color:var(--tm-brand-800)}
.tm-home .tm-hero__stat dd{margin:0;font-size:.85rem;color:var(--tm-ink-soft)}

.tm-home .tm-hero__visual{position:relative}
.tm-home .tm-hero__panel{
  position:relative;aspect-ratio:4/5;overflow:hidden;
  border-radius:46% 46% 14px 14px/30% 30% 14px 14px;
  background:linear-gradient(160deg,var(--tm-brand-700),var(--tm-brand-900));
  box-shadow:0 40px 70px -28px rgba(11,37,64,.5);
  color:#fff;
}
.tm-home .tm-hero__panel::before{
  content:"";position:absolute;inset:0;
  background-image:var(--tm-pattern-dark);background-size:60px 60px;opacity:.14;
}
.tm-home .tm-hero__panel-emblem{
  position:absolute;inset:0;display:grid;place-items:center;color:rgba(255,255,255,.9);
}
.tm-home .tm-hero__panel-emblem svg{width:64%;max-width:280px}
.tm-home .tm-hero__float{
  position:absolute;inset-inline-start:-1.25rem;bottom:1.75rem;
  display:flex;align-items:center;gap:.6rem;
  background:#fff;color:var(--tm-brand-800);font-weight:700;font-size:.9rem;
  padding:.8rem 1rem;border-radius:14px;box-shadow:var(--tm-shadow);
}
.tm-home .tm-hero__float-icon{display:grid;place-items:center;color:var(--tm-gold)}
.tm-home .tm-hero__float-icon svg{width:22px;height:22px}

.tm-home .tm-emblem{width:100%;height:auto}

/* ---------- شبکه‌ها ---------- */
.tm-home .tm-grid{display:grid;gap:1.4rem}
.tm-home .tm-grid--3{grid-template-columns:repeat(3,1fr)}
.tm-home .tm-grid--4{grid-template-columns:repeat(4,1fr)}

/* ---------- کارت‌های خدمات ---------- */
.tm-home .tm-card{
  display:flex;flex-direction:column;background:#fff;
  border:1px solid var(--tm-line);border-radius:var(--tm-radius);
  padding:clamp(1.25rem,2.5vw,1.7rem);
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;
}
.tm-home .tm-card:hover{transform:translateY(-5px);box-shadow:var(--tm-shadow);border-color:var(--tm-brand-200)}
.tm-home .tm-card__icon{
  width:54px;height:54px;display:grid;place-items:center;border-radius:14px;
  background:var(--tm-brand-50);color:var(--tm-brand-600);margin-bottom:1rem;
  transition:background-color .25s ease,color .25s ease;
}
.tm-home .tm-card:hover .tm-card__icon{background:var(--tm-brand-600);color:#fff}
.tm-home .tm-card h3{font-size:1.15rem;margin-bottom:.5rem}
.tm-home .tm-card p{color:var(--tm-ink-soft);font-size:.95rem;flex:1}

/* ---------- دربارهٔ ما ---------- */
.tm-home .tm-about{background:var(--tm-surface-2)}
.tm-home .tm-about__inner{
  display:grid;grid-template-columns:.95fr 1.05fr;gap:clamp(2rem,5vw,4rem);align-items:center;
}
.tm-home .tm-about__visual{position:relative}
.tm-home .tm-about__panel{
  position:relative;aspect-ratio:1/1;overflow:hidden;
  border-radius:44% 44% 16px 16px/28% 28% 16px 16px;
  background:linear-gradient(160deg,var(--tm-brand-600),var(--tm-brand-900));
  box-shadow:0 40px 70px -30px rgba(11,37,64,.45);color:#fff;
}
.tm-home .tm-about__panel::before{
  content:"";position:absolute;inset:0;background-image:var(--tm-pattern-dark);
  background-size:56px 56px;opacity:.13;
}
.tm-home .tm-about__panel-emblem{position:absolute;inset:0;display:grid;place-items:center;color:rgba(255,255,255,.9)}
.tm-home .tm-about__panel-emblem svg{width:66%;max-width:260px}
.tm-home .tm-about__badge{
  position:absolute;inset-inline-end:-1rem;bottom:1.5rem;max-width:230px;
  display:flex;align-items:center;gap:.6rem;
  background:#fff;color:var(--tm-brand-800);font-weight:700;font-size:.88rem;
  padding:.9rem 1.05rem;border-radius:14px;box-shadow:var(--tm-shadow);
}
.tm-home .tm-about__badge-icon{color:var(--tm-gold);flex:none}
.tm-home .tm-about__badge-icon svg{width:22px;height:22px}
.tm-home .tm-about__body .tm-ornament{margin-bottom:1.4rem}
.tm-home .tm-about__p{margin-top:1rem;color:var(--tm-ink-soft)}
.tm-home .tm-feature-list{margin:1.5rem 0;display:flex;flex-direction:column;gap:.7rem}
.tm-home .tm-feature-list li{display:flex;align-items:flex-start;gap:.65rem;font-weight:600;color:var(--tm-ink)}
.tm-home .tm-feature-list__icon{
  flex:none;width:26px;height:26px;display:grid;place-items:center;border-radius:8px;
  background:var(--tm-brand-100);color:var(--tm-brand-700);
}
.tm-home .tm-feature-list__icon svg{width:16px;height:16px}

/* ---------- موضوعات ---------- */
.tm-home .tm-topics__grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}
.tm-home .tm-topic{
  display:flex;gap:1rem;align-items:flex-start;
  padding:1.3rem 1.4rem;background:#fff;
  border:1px solid var(--tm-line);border-inline-start:3px solid var(--tm-brand-500);
  border-radius:var(--tm-radius);
  transition:background-color .22s ease,border-color .22s ease,transform .22s ease;
}
.tm-home .tm-topic:hover{background:var(--tm-brand-50);border-inline-start-color:var(--tm-gold);transform:translateX(-4px)}
.tm-home .tm-topic__num{font-size:1.35rem;font-weight:800;color:var(--tm-brand-300);flex:none;line-height:1.6}
.tm-home .tm-topic h3{font-size:1.05rem;margin-bottom:.25rem}
.tm-home .tm-topic p{font-size:.9rem;color:var(--tm-ink-soft)}

/* ---------- محتوای منتخب ---------- */
.tm-home .tm-post{
  display:flex;flex-direction:column;overflow:hidden;background:#fff;
  border:1px solid var(--tm-line);border-radius:var(--tm-radius);
  transition:transform .25s ease,box-shadow .25s ease;
}
.tm-home .tm-post:hover{transform:translateY(-5px);box-shadow:var(--tm-shadow)}
.tm-home .tm-post__thumb{
  position:relative;aspect-ratio:16/10;overflow:hidden;
  background:linear-gradient(150deg,var(--tm-brand-500),var(--tm-brand-800));color:#fff;
}
.tm-home .tm-post__thumb::before{
  content:"";position:absolute;inset:0;background-image:var(--tm-pattern-dark);
  background-size:46px 46px;opacity:.16;
}
.tm-home .tm-post__emblem{position:absolute;inset:0;display:grid;place-items:center;opacity:.85}
.tm-home .tm-post__emblem svg{width:56px;height:56px}
.tm-home .tm-post__tag{
  position:absolute;inset-inline-start:.8rem;top:.8rem;
  background:rgba(255,255,255,.94);color:var(--tm-brand-800);
  font-size:.72rem;font-weight:700;padding:.3rem .7rem;border-radius:8px;
}
.tm-home .tm-post__body{display:flex;flex-direction:column;gap:.55rem;padding:1.3rem;flex:1}
.tm-home .tm-post__date{display:flex;align-items:center;gap:.4rem;font-size:.8rem;color:var(--tm-ink-soft)}
.tm-home .tm-post__date svg{width:15px;height:15px}
.tm-home .tm-post h3{font-size:1.1rem}
.tm-home .tm-post__body p{font-size:.92rem;color:var(--tm-ink-soft)}
.tm-home .tm-post__body p:nth-of-type(1){flex:1}

/* ---------- مزایا (بخش تیره) ---------- */
.tm-home .tm-benefits{
  background:var(--tm-brand-900);color:#fff;overflow:hidden;
}
.tm-home .tm-benefits::before{
  content:"";position:absolute;inset:0;background-image:var(--tm-pattern-dark);
  background-size:52px 52px;opacity:.06;pointer-events:none;
}
.tm-home .tm-benefits>.tm-container{position:relative;z-index:1}
.tm-home .tm-benefits .tm-title{color:#fff}
.tm-home .tm-benefits .tm-eyebrow{color:var(--tm-brand-300)}
.tm-home .tm-benefits .tm-ornament{color:var(--tm-gold)}
.tm-home .tm-benefit__icon{
  width:50px;height:50px;display:grid;place-items:center;border-radius:14px;
  background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);color:#fff;margin-bottom:.9rem;
}
.tm-home .tm-benefit h3{color:#fff;font-size:1.05rem;margin-bottom:.35rem}
.tm-home .tm-benefit p{color:rgba(255,255,255,.72);font-size:.9rem}

/* ---------- پیوندهای مفید ---------- */
.tm-home .tm-links__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem}
.tm-home .tm-linkgroup h3{
  font-size:1rem;margin-bottom:.9rem;padding-bottom:.6rem;
  border-bottom:1px solid var(--tm-line);color:var(--tm-brand-900);
}
.tm-home .tm-linkgroup ul{display:flex;flex-direction:column;gap:.5rem}
.tm-home .tm-linkgroup a{
  display:inline-flex;align-items:center;gap:.5rem;
  color:var(--tm-ink-soft);font-size:.93rem;transition:color .2s ease;
}
.tm-home .tm-linkgroup a svg{width:16px;height:16px;color:var(--tm-brand-400);transition:transform .2s ease}
.tm-home .tm-linkgroup a:hover{color:var(--tm-brand-700)}
.tm-home .tm-linkgroup a:hover svg{transform:translateX(-3px)}

/* ---------- نوار فراخوان ---------- */
.tm-home .tm-cta-band{
  background:linear-gradient(120deg,var(--tm-brand-700),var(--tm-brand-900));
  color:#fff;text-align:center;overflow:hidden;
}
.tm-home .tm-cta-band::before{
  content:"";position:absolute;inset:0;background-image:var(--tm-pattern-dark);
  background-size:50px 50px;opacity:.08;pointer-events:none;
}
.tm-home .tm-cta-band>.tm-container{position:relative;z-index:1;max-width:760px}
.tm-home .tm-cta-band h2{color:#fff;font-size:clamp(1.4rem,3.4vw,2rem);line-height:1.6}
.tm-home .tm-cta-band p{margin-top:.8rem;color:rgba(255,255,255,.82)}
.tm-home .tm-cta-band__actions{
  margin-top:1.7rem;display:flex;flex-wrap:wrap;gap:1rem;align-items:center;justify-content:center;
}
.tm-home .tm-phone{display:inline-flex;align-items:center;gap:.5rem;font-weight:700;color:#fff}
.tm-home .tm-phone svg{width:20px;height:20px}

/* ---------- فوتر ---------- */
.tm-home .tm-footer{background:var(--tm-brand-900);color:rgba(255,255,255,.72);padding-top:clamp(2.75rem,6vw,4rem)}
.tm-home .tm-footer__grid{
  display:grid;grid-template-columns:1.5fr 1fr 1fr 1.3fr;gap:2rem;
  padding-bottom:2.25rem;
}
.tm-home .tm-footer .tm-brand__mark{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.16);color:#fff}
.tm-home .tm-footer .tm-brand__name{color:#fff}
.tm-home .tm-footer .tm-brand__tag{color:rgba(255,255,255,.6)}
.tm-home .tm-footer__about{margin-top:1rem;font-size:.9rem;line-height:1.9;max-width:34ch}
.tm-home .tm-footer h4{color:#fff;font-size:1rem;margin-bottom:1rem}
.tm-home .tm-footer__col ul{display:flex;flex-direction:column;gap:.55rem}
.tm-home .tm-footer a{color:rgba(255,255,255,.72);font-size:.9rem;transition:color .2s ease}
.tm-home .tm-footer a:hover{color:#fff}
.tm-home .tm-social{display:flex;gap:.55rem;margin-top:1.1rem}
.tm-home .tm-social a{
  width:38px;height:38px;display:grid;place-items:center;border-radius:10px;
  background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);
  transition:background-color .2s ease,transform .2s ease;
}
.tm-home .tm-social a:hover{background:var(--tm-brand-600);transform:translateY(-2px)}
.tm-home .tm-social svg{width:19px;height:19px}
.tm-home .tm-footer__contact li{display:flex;gap:.6rem;align-items:flex-start;font-size:.9rem;margin-bottom:.75rem;line-height:1.8}
.tm-home .tm-footer__contact li svg{width:18px;height:18px;color:var(--tm-brand-300);flex:none;margin-top:.35rem}
.tm-home .tm-footer__bottom{
  display:flex;flex-wrap:wrap;gap:1rem;justify-content:space-between;align-items:center;
  border-top:1px solid rgba(255,255,255,.1);padding-block:1.4rem;font-size:.82rem;
}
.tm-home .tm-top{display:inline-flex;align-items:center;gap:.4rem;font-weight:600}
.tm-home .tm-top svg{width:16px;height:16px;transition:transform .2s ease}
.tm-home .tm-top:hover svg{transform:translateY(-3px)}

/* ---------- انیمیشن ظهور تدریجی ---------- */
@media (prefers-reduced-motion:no-preference){
  .tm-js .tm-home .tm-reveal{opacity:0;transform:translateY(20px);transition:opacity .6s ease,transform .6s ease}
  .tm-js .tm-home .tm-reveal.is-visible{opacity:1;transform:none}
}

/* ---------- نوار مدیریت وردپرس ---------- */
@media screen{
  .tm-home.admin-bar .tm-header{top:32px}
}
@media screen and (max-width:782px){
  .tm-home.admin-bar .tm-header{top:46px}
}

/* =====================================================================
 *  واکنش‌گرایی
 * ===================================================================== */
@media (max-width:1024px){
  .tm-home .tm-grid--4{grid-template-columns:repeat(2,1fr)}
}

@media (max-width:980px){
  .tm-home .tm-nav{
    position:absolute;inset-inline:0;top:100%;
    background:#fff;border-bottom:1px solid var(--tm-line);
    box-shadow:0 24px 40px -24px rgba(11,37,64,.3);
    max-height:0;overflow:hidden;transition:max-height .3s ease;
  }
  .tm-home .tm-header.is-open .tm-nav{max-height:78vh;overflow:auto}
  .tm-home .tm-nav ul{flex-direction:column;align-items:stretch;padding:.6rem;gap:.15rem}
  .tm-home .tm-nav a{padding:.9rem 1rem;font-size:1rem;border-radius:10px}
  .tm-home .tm-nav-toggle{display:flex}
  .tm-home .tm-header .tm-cta{display:none}
}

@media (max-width:900px){
  .tm-home .tm-hero__inner{grid-template-columns:1fr}
  .tm-home .tm-hero__visual{order:-1;max-width:340px;margin-inline:auto}
  .tm-home .tm-hero__panel{aspect-ratio:5/4;border-radius:40% 40% 14px 14px/26% 26% 14px 14px}
  .tm-home .tm-hero__float{inset-inline-start:0}
  .tm-home .tm-about__inner{grid-template-columns:1fr}
  .tm-home .tm-about__visual{order:-1;max-width:420px;margin-inline:auto}
  .tm-home .tm-grid--3{grid-template-columns:repeat(2,1fr)}
}

@media (max-width:768px){
  .tm-home{font-size:15.5px}
  .tm-home .tm-topics__grid{grid-template-columns:1fr}
  .tm-home .tm-links__grid{grid-template-columns:1fr 1fr}
  .tm-home .tm-footer__grid{grid-template-columns:1fr 1fr}
  .tm-home .tm-hero__stats{gap:1.25rem}
  .tm-home .tm-hero__stat dt{font-size:1.2rem}
}

@media (max-width:560px){
  .tm-home .tm-grid--3,
  .tm-home .tm-grid--4{grid-template-columns:1fr}
  .tm-home .tm-links__grid{grid-template-columns:1fr}
  .tm-home .tm-footer__grid{grid-template-columns:1fr}
  .tm-home .tm-btn{width:100%}
  .tm-home .tm-hero__actions{flex-direction:column;align-items:stretch}
  .tm-home .tm-hero__actions .tm-btn{width:100%}
  .tm-home .tm-cta-band__actions{flex-direction:column}
  .tm-home .tm-cta-band__actions .tm-btn{width:100%}
  .tm-home .tm-about__badge{position:static;margin-top:1rem;max-width:none;inset-inline-end:auto}
  .tm-home .tm-hero__float{position:static;margin-top:1rem}
  .tm-home .tm-footer__bottom{justify-content:center;text-align:center}
}

@media print{
  .tm-home .tm-header,.tm-home .tm-nav-toggle,.tm-home .tm-hero__visual,.tm-home .tm-skip{display:none}
  .tm-home .tm-reveal{opacity:1!important;transform:none!important}
}
