/* ============ فونت ============ */
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

/* ============ متغیرها ============ */
:root {
  --bg: #12161C;
  --surface: #1A2028;
  --surface-2: #222A34;
  --surface-3: #2A333F;
  --ink: #E8EBEF;
  --ink-2: #B7C0CB;
  --muted: #8A95A2;
  --line: #2E3844;
  --line-2: #3A4552;
  --brand: #C75B2A;
  --brand-2: #E0703C;
  --brand-soft: rgba(199, 91, 42, .15);
  --accent: #7FA8C9;
  --accent-soft: rgba(127, 168, 201, .14);
  --danger: #E05B4A;
  --ok: #3E9B6D;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 26px -14px rgba(0, 0, 0, .7);
  --shadow-lg: 0 2px 8px rgba(0, 0, 0, .45), 0 28px 54px -24px rgba(0, 0, 0, .8);
  --max: 1280px;
  --gutter: clamp(20px, 3.4vw, 56px);
}

/* ============ پایه ============ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: 'ss01';
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.45; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 1.85rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul, ol { padding-inline-start: 1.4em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
small, .small { font-size: .82rem; }
.muted { color: var(--muted); }
.wrap, .container {
  width: 100%; max-width: var(--max);
  margin-inline: auto; padding-inline: var(--gutter);
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ============ هدر ============ */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(18, 22, 28, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 22px; min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); flex: 0 0 auto; }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; flex: 0 0 auto;
  display: block; object-fit: contain;
  box-shadow: 0 6px 16px -8px rgba(199, 91, 42, .7);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; font-weight: 700; }
.brand-text small { font-weight: 400; color: var(--muted); font-size: .72rem; }

.header-search { flex: 1 1 auto; max-width: 460px; }
.header-search form { display: flex; gap: 0; }
.header-search input {
  flex: 1; border: 1px solid var(--line); border-inline-end: 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 9px 14px; font: inherit; background: var(--surface-2); color: var(--ink);
}
.header-search input:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.header-search button {
  border: 1px solid var(--brand); background: var(--brand); color: #fff;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  padding: 9px 18px; font: inherit; cursor: pointer;
}
.header-search button:hover { background: var(--brand-2); }

.site-nav { display: flex; gap: 2px; margin-inline: auto; }
.site-nav a {
  padding: 9px 14px; border-radius: var(--radius-sm); color: var(--ink-2);
  font-size: .92rem; white-space: nowrap; position: relative;
}
.site-nav a:hover { color: var(--ink); background: var(--surface-2); }
.site-nav a.on { color: var(--brand-2); }
.site-nav a.on::after {
  content: ''; position: absolute; inset-inline: 14px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--brand);
}

.nav-toggle {
  display: none; margin-inline-start: auto;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 6px 11px; font-size: 1.1rem; cursor: pointer; color: var(--ink);
}

/* ============ هیرو ============ */
.hero {
  background:
    radial-gradient(900px 360px at 88% -12%, rgba(199, 91, 42, .22), transparent 66%),
    radial-gradient(720px 320px at 8% 0%, rgba(127, 168, 201, .12), transparent 62%),
    linear-gradient(180deg, #171D25, #12161C);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 48px;
}
.hero h1 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); max-width: 20ch; }
.hero p.lead { color: var(--ink-2); font-size: 1.02rem; max-width: 58ch; }
.hero-search { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.hero-search input, .hero-search select {
  font: inherit; padding: 12px 15px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink); min-width: 0;
}
.hero-search input { flex: 1 1 260px; }
.hero-search select { flex: 0 1 190px; }
.hero-search .btn { flex: 0 0 auto; }

/* ============ دکمه‌ها ============ */
.btn, .btn-ghost, .btn-danger {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 500; cursor: pointer;
  padding: 10px 20px; border-radius: var(--radius-sm);
  border: 1px solid transparent; transition: .16s ease;
  text-decoration: none; line-height: 1.5;
}
.btn { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn:hover { background: var(--brand-2); color: #fff; }
.btn-ghost { background: var(--surface-2); color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-danger { background: var(--surface-2); color: var(--danger); border-color: rgba(224, 91, 74, .38); padding: 6px 12px; font-size: .85rem; }
.btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-sm { padding: 6px 12px; font-size: .85rem; }
.link-more { font-size: .88rem; font-weight: 500; }

/* ============ بخش‌ها ============ */
.section { padding: 44px 0; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 20px;
}
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ============ کارت آمار ============ */
.stat-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px; margin-top: 34px;
}
.stat-strip div {
  background: rgba(34, 42, 52, .72); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px;
}
.stat-strip strong { display: block; font-size: 1.5rem; color: var(--brand-2); }
.stat-strip span { color: var(--muted); font-size: .86rem; }

/* ============ چیپ صنایع ============ */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-block; padding: 7px 15px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2);
  font-size: .88rem; transition: .16s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.chip .n { color: var(--muted); font-size: .78rem; margin-inline-start: 4px; }

/* ============ شبکه کارت شرکت ============ */
.card-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
}
.company-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
  transition: .18s ease;
}
.company-card:hover { box-shadow: var(--shadow-lg); border-color: rgba(199, 91, 42, .55); transform: translateY(-2px); }
.company-card .cc-top { display: flex; gap: 12px; align-items: flex-start; }
.company-card .logo {
  width: 52px; height: 52px; flex: 0 0 52px; border-radius: 12px;
  background: var(--surface-3); border: 1px solid var(--line);
  object-fit: contain; padding: 4px;
}
.company-card h3 { margin: 0; font-size: 1rem; }
.company-card h3 a { color: var(--ink); }
.company-card h3 a:hover { color: var(--brand); }
.company-card .meta { color: var(--muted); font-size: .82rem; display: flex; flex-wrap: wrap; gap: 8px; }
.company-card .desc {
  color: var(--ink-2); font-size: .88rem; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.company-card .cc-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: .76rem; padding: 3px 9px; border-radius: 6px;
  background: var(--brand-soft); color: var(--brand-2);
}
.tag.gray { background: var(--surface-3); color: var(--ink-2); }
.tag.gold { background: rgba(224, 164, 88, .16); color: #E0A458; }

/* ============ لیست نتایج ============ */
.result-list { display: flex; flex-direction: column; gap: 12px; }
.result-item {
  display: flex; gap: 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
}
.result-item:hover { border-color: rgba(199, 91, 42, .55); box-shadow: var(--shadow); }
.result-item .logo {
  width: 64px; height: 64px; flex: 0 0 64px; border-radius: 12px;
  background: var(--surface-3); border: 1px solid var(--line); object-fit: contain; padding: 5px;
}
.result-item .body { flex: 1; min-width: 0; }
.result-item h3 { margin: 0 0 4px; font-size: 1.02rem; }
.result-item h3 a { color: var(--ink); }
.result-item h3 a:hover { color: var(--brand); }
.result-item .desc { margin: 6px 0 0; color: var(--ink-2); font-size: .88rem; }

/* ============ نوار فیلتر ============ */
.filter-bar {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px; margin-bottom: 20px;
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.filter-bar input, .filter-bar select {
  font: inherit; padding: 9px 13px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink);
}
.filter-bar input[type=search] { flex: 1 1 220px; }
.filter-bar select { flex: 0 1 180px; }

/* ============ صفحه‌بندی ============ */
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 26px; font-size: .9rem; }
.pager a {
  padding: 7px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--ink-2);
}
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager span { color: var(--muted); }

/* ============ صفحه شرکت ============ */
.page-head {
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 30px 0;
}
.page-head .ph-inner { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.page-head .logo {
  width: 88px; height: 88px; flex: 0 0 88px; border-radius: 16px;
  background: var(--surface-3); border: 1px solid var(--line); object-fit: contain; padding: 7px;
}
.page-head h1 { margin: 0 0 6px; font-size: 1.6rem; }
.page-head .sub { color: var(--muted); font-size: .9rem; }
.breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }

.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; margin-bottom: 18px;
}
.panel > h2 { font-size: 1.05rem; margin-bottom: 14px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-head h1, .panel-head h2 { margin: 0; font-size: 1.05rem; }

.kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 14px; font-size: .9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); word-break: break-word; }

.loc-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 10px; }
.loc-card:last-child { margin-bottom: 0; }
.loc-card .lt { font-size: .78rem; color: var(--brand-2); background: var(--brand-soft); padding: 2px 8px; border-radius: 5px; }
.loc-card address { font-style: normal; color: var(--ink-2); font-size: .88rem; margin-top: 6px; }

.prose { font-size: .95rem; color: var(--ink-2); line-height: 1.95; }
.prose h2, .prose h3 { color: var(--ink); margin-top: 1.6em; }
.prose img { border-radius: var(--radius-sm); margin: 1.2em 0; }
.prose blockquote {
  margin: 1.2em 0; padding: 12px 18px; border-inline-start: 3px solid var(--brand);
  background: var(--brand-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink-2);
}
.prose table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: right; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.gallery img { border-radius: var(--radius-sm); border: 1px solid var(--line); aspect-ratio: 4/3; object-fit: cover; }

/* ============ اخبار ============ */
.news-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.news-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px;
}
.news-card:hover { box-shadow: var(--shadow); border-color: rgba(199, 91, 42, .5); }
.news-card h3 { margin: 0; font-size: 1rem; }
.news-card h3 a { color: var(--ink); }
.news-card h3 a:hover { color: var(--brand); }
.news-card p { margin: 0; color: var(--ink-2); font-size: .88rem; }
.news-card .meta { color: var(--muted); font-size: .78rem; margin-top: auto; padding-top: 8px; }

/* ============ فرم ============ */
.form label { display: block; margin-bottom: 14px; font-size: .88rem; color: var(--ink-2); font-weight: 500; }
.form input[type=text], .form input[type=email], .form input[type=password],
.form input[type=number], .form input[type=search], .form input[type=file],
.form select, .form textarea {
  display: block; width: 100%; margin-top: 6px;
  font: inherit; font-weight: 400; color: var(--ink);
  padding: 10px 13px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--surface-2);
}
.form textarea { resize: vertical; line-height: 1.8; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}
.form fieldset { border: 0; padding: 0; margin: 0 0 8px; }
.form legend { font-weight: 700; font-size: .95rem; color: var(--ink); margin-bottom: 12px; padding: 0; }
.form .req { color: var(--danger); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.check { display: flex !important; align-items: center; gap: 8px; font-weight: 400; }
.check input { width: auto !important; margin: 0 !important; accent-color: var(--brand); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 14px; margin-bottom: 14px; }
.form .inline, form.inline { display: inline; }

/* ============ هشدار ============ */
.alert {
  padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 18px;
  font-size: .9rem; border: 1px solid transparent;
}
.alert-ok { background: rgba(62, 155, 109, .14); border-color: rgba(62, 155, 109, .4); color: #6FD3A3; }
.alert-err { background: rgba(224, 91, 74, .14); border-color: rgba(224, 91, 74, .42); color: #F0907F; }

/* ============ جدول ============ */
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th, .table td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { color: var(--muted); font-weight: 500; font-size: .8rem; background: var(--surface-2); white-space: nowrap; }
.table tbody tr:hover { background: rgba(199, 91, 42, .07); }
.table a { color: var(--ink); font-weight: 500; }
.table a:hover { color: var(--brand); }
.badge { display: inline-block; padding: 2px 9px; border-radius: 6px; font-size: .74rem; font-weight: 500; }
.badge.soft { background: var(--surface-3); color: var(--ink-2); }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 2px 0 0; }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 0; }
.plain-list p { margin: 2px 0 0; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ============ فوتر ============ */
.site-footer { background: #0C1014; color: #A9B4C0; margin-top: 56px; padding: 44px 0 0; font-size: .88rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.site-footer a { color: #A9B4C0; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; }
.footer-bottom {
  margin-top: 32px; border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 16px 0; font-size: .8rem; color: #7C8794;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ============ واکنش‌گرا ============ */
@media (max-width: 900px) {
  .layout-2col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 66px; inset-inline: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 10px 16px 16px; gap: 2px;
    box-shadow: var(--shadow);
  }
  body.nav-open .site-nav { display: flex; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; margin-bottom: 10px; }
  .header-inner { flex-wrap: wrap; padding-bottom: 10px; }
  .hero { padding: 36px 0 32px; }
  .grid-2 { grid-template-columns: 1fr; }
  .result-item { flex-direction: row; }
  .result-item .logo { width: 52px; height: 52px; flex-basis: 52px; }
  .footer-grid { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dt { margin-top: 8px; }
  h1 { font-size: 1.5rem; }
}

/* ============ چیدمان پایه (حداکثر ۱۴۴۰px + حاشیه خاکستری) ============ */
.container > .layout-2col,
.container.narrow { max-width: 1120px; margin-inline: auto; }
.narrow { max-width: 820px; margin-inline: auto; }
.center { text-align: center; }
.block { display: block; width: 100%; text-align: center; margin-top: 10px; }
.pre { white-space: pre-line; line-height: 2; }
.dot { color: var(--muted); margin: 0 6px; }
.ok { color: #6FD3A3; }
.copyright { font-size: 12px; opacity: .78; }

/* ============ صفحات دوستونی ============ */
.layout-2col { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
/* صفحه فهرست: ستون فیلتر باریک‌تر و در سمت راست (اول در RTL) */
.layout-2col.with-filters { grid-template-columns: 280px minmax(0, 1fr); }
.main-col, .side-col { display: grid; gap: 20px; min-width: 0; }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; position: sticky; top: 16px; }
.filters label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.filters input, .filters select { width: 100%; margin-top: 6px; }
.results { min-width: 0; }

/* ============ فهرست شرکت‌ها ============ */
.list { display: grid; gap: 12px; }
.list-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; transition: border-color .18s, box-shadow .18s; }
.list-item:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.thumb { display: block; width: 96px; height: 96px; border-radius: var(--radius-sm);
  overflow: hidden; background: var(--surface-3); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.list-body { min-width: 0; }
.list-body h3 { margin: 0 0 6px; font-size: 16px; }
.list-body .meta { font-size: 12.5px; color: var(--muted); margin: 0 0 6px; }

/* ============ کارت‌ها و گریدها ============ */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; }
.card-media { aspect-ratio: 16 / 10; background: var(--surface-3); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 14px 16px; display: grid; gap: 6px; }
.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.news-item { display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: 0; }
.news-item-body { flex: 1 1 auto; min-width: 0; }
.news-thumb { flex: 0 0 120px; width: 120px; aspect-ratio: 4 / 3; border-radius: 8px;
  overflow: hidden; background: var(--surface-3); display: block; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.industry-card { background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; text-align: center; }

/* ============ هدر شرکت ============ */
.company-hero { background: linear-gradient(180deg, #1A2028, #151A21);
  border-bottom: 1px solid var(--line); padding: 28px 0; }
.company-hero.has-cover { position: relative; overflow: hidden; }
.company-hero.has-cover::before { content: ""; position: absolute; inset: 0;
  background-image: var(--cover); background-size: cover; background-position: center;
  opacity: .28; }
.company-hero.has-cover::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,22,28,.55), rgba(18,22,28,.92)); }
.company-hero.has-cover .company-hero-inner { position: relative; z-index: 1; }
.company-hero-inner { display: grid; grid-template-columns: 132px minmax(0, 1fr);
  gap: 22px; align-items: center; }
.company-logo { width: 132px; height: 132px; border-radius: 16px; background: var(--surface-2);
  border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.company-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.company-head h1 { margin: 0 0 4px; font-size: 24px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.badge.soft { background: var(--surface-3); color: var(--ink-2); border-color: transparent; }
.loc { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.loc:last-child { border-bottom: 0; }

/* ============ مقاله ============ */
.article-page { max-width: 820px; margin-inline: auto; }
.article-body { line-height: 2.1; font-size: 16px; }
.article-body img { max-width: 100%; height: auto; border-radius: 10px; }
.article-cover { margin: 22px 0; }
.article-cover img { width: 100%; height: auto; border-radius: 12px; display: block;
  border: 1px solid var(--line); }
.article-cover figcaption { margin-top: 8px; font-size: .82rem; color: var(--muted); text-align: center; }

/* --- جعبه پیوست‌ها --- */
.attach-box { margin: 30px 0 10px; padding: 18px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface); }
.attach-box h2 { margin: 0 0 12px; font-size: 1.05rem; }
.attach-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.attach-list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px; background: var(--surface-3); border-radius: 8px; }
.attach-kind { flex: 0 0 auto; font-size: .7rem; font-weight: 700; letter-spacing: .04em;
  color: var(--brand-2); background: rgba(199, 91, 42, .14); border-radius: 4px; padding: 2px 7px; }
.attach-name { flex: 1 1 auto; min-width: 0; color: var(--ink); font-size: .9rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-name:hover { color: var(--brand-2); }
.attach-size { flex: 0 0 auto; }
.source-link { margin-top: 18px; color: var(--muted); }

/* ============ واکنش‌گرای چیدمان ============ */
@media (max-width: 980px) {
  .wrap, .container { padding-inline: 22px; }
  .layout-2col { grid-template-columns: 1fr; }
  .filters { position: static; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .wrap, .container { padding-inline: 16px; }
  .list-item { grid-template-columns: 72px minmax(0, 1fr); }
  .thumb { width: 72px; height: 72px; }
  .company-hero-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .news-item { flex-direction: column; }
  .news-thumb { flex: 0 0 auto; width: 100%; aspect-ratio: 16 / 9; }
}

/* ============================================================
   طرح تحریریه‌ای (زغالی-سرمه‌ای + نارنجی سوخته) — صفحه اصلی
   ============================================================ */

/* --- نوار بالای سایت (آگهی سمت چپ) --- */
.topstrip {
  background: #0E141B;
  border-bottom: 1px solid var(--line);
  font-size: .8rem;
}
.topstrip-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 38px;
}
.topstrip-note { color: var(--muted); white-space: nowrap; }
.topstrip-meta { color: var(--muted); white-space: nowrap; }
.topstrip-banner { padding-bottom: 10px; }
.topstrip-ad {
  position: relative; display: block; overflow: hidden;
  border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--surface-2);
  transition: border-color .18s ease, transform .18s ease;
}
.topstrip-ad:hover { border-color: var(--brand); }
.topstrip-ad-img {
  display: block; width: 100%; height: 350px;
  object-fit: cover; object-position: center;
}
.topstrip-ad .ad-label {
  position: absolute; inset-block-start: 8px; inset-inline-start: 8px;
  background: rgba(14, 20, 27, .78); backdrop-filter: blur(2px);
}
.topstrip-ad-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-label {
  font-size: .68rem; letter-spacing: .02em; color: #C9A27A;
  border: 1px solid rgba(201, 162, 122, .4); border-radius: 4px;
  padding: 1px 6px; flex: 0 0 auto; background: rgba(201, 162, 122, .08);
}

/* --- اقدامات هدر --- */
.header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.header-actions .btn, .header-actions .btn-ghost { padding: 8px 16px; font-size: .86rem; }

/* --- هیرو --- */
.hero { padding: 40px 0 34px; background: linear-gradient(180deg, #141B24, var(--bg)); border-bottom: 1px solid var(--line); }
.hero-panel {
  background:
    radial-gradient(760px 300px at 92% -30%, rgba(199, 91, 42, .26), transparent 68%),
    radial-gradient(620px 260px at 4% 110%, rgba(127, 168, 201, .1), transparent 66%),
    linear-gradient(155deg, #3A2A26 0%, #2A2320 42%, #1B2129 100%);
  border: 1px solid rgba(199, 91, 42, .22);
  border-radius: 20px;
  padding: 44px 46px 38px;
  max-width: 1200px;
  margin-inline: auto;
}
.hero-kicker {
  margin: 0 0 8px; font-size: .8rem; letter-spacing: .06em;
  color: #C9A27A; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem); margin: 0 0 10px; max-width: 22ch;
  letter-spacing: -.02em;
}
.hero p.lead { color: var(--ink-2); font-size: 1.05rem; margin: 0; max-width: 56ch; }
.hero-search { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; max-width: 780px; }
.hero-search input, .hero-search select {
  font: inherit; padding: 13px 16px; border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px; background: rgba(22, 32, 42, .92); color: var(--ink); min-width: 0;
}
.hero-search input { flex: 1 1 300px; }
.hero-search input::placeholder { color: #7C8794; }
.hero-search select { flex: 0 1 180px; }
.hero-search button {
  flex: 0 0 auto; font: inherit; font-weight: 500; cursor: pointer;
  padding: 13px 30px; border-radius: 10px; border: 1px solid var(--brand);
  background: var(--brand); color: #fff; transition: .16s;
}
.hero-search button:hover { background: var(--brand-2); border-color: var(--brand-2); }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 30px; max-width: 620px; }
.hero-stats div {
  background: rgba(16, 27, 35, .62); border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 12px; padding: 14px 16px;
}
.hero-stats strong { display: block; font-size: 1.4rem; color: var(--brand-2); line-height: 1.3; }
.hero-stats span { color: var(--muted); font-size: .8rem; }

/* --- بدنه دوستونی صفحه اصلی --- */
.home-body { padding-top: 34px; }
.home-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 372px;
  gap: 24px; align-items: start; max-width: 1200px; margin-inline: auto;
}
.home-main, .home-side { display: grid; gap: 20px; min-width: 0; }

/* --- فید محتوا --- */
.feed { display: grid; }
.feed-row { padding: 16px 0; border-bottom: 1px solid var(--line);
  display: flex; gap: 14px; align-items: flex-start; }
.feed-thumb { flex: 0 0 96px; width: 96px; aspect-ratio: 4 / 3; border-radius: 8px;
  overflow: hidden; background: var(--surface-3); display: block; }
.feed-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feed-row:first-child { padding-top: 0; }
.feed-row:last-child { border-bottom: 0; padding-bottom: 0; }
.feed-body h3 { margin: 0 0 6px; font-size: 1.02rem; }
.feed-body h3 a { color: var(--ink); }
.feed-body h3 a:hover { color: var(--brand-2); }
.feed-summary {
  margin: 0; color: var(--ink-2); font-size: .88rem; line-height: 1.85;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.feed-meta { margin-top: 8px; font-size: .76rem; color: var(--muted); display: flex; gap: 10px; }

/* --- فهرست اعضا --- */
.member-list { display: grid; gap: 2px; }
.member-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 10px; border-radius: 10px; color: var(--ink);
  border-bottom: 1px solid rgba(46, 56, 68, .55);
}
.member-row:last-child { border-bottom: 0; }
.member-row:hover { background: var(--surface-2); color: var(--ink); }
.member-logo {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 10px;
  background: var(--surface-3); border: 1px solid var(--line);
  object-fit: contain; padding: 4px;
}
.member-body { display: flex; flex-direction: column; min-width: 0; line-height: 1.5; }
.member-body strong { font-size: .92rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-meta { font-size: .76rem; color: var(--muted); }

/* --- کارت آگهی --- */
.ad-card {
  position: relative; border-radius: var(--radius);
  border: 1px dashed rgba(96, 104, 113, .55);
  background: linear-gradient(160deg, rgba(96, 104, 113, .22), rgba(16, 27, 35, .55));
  padding: 20px; display: grid; gap: 10px;
}
.ad-card .ad-label { justify-self: start; }
.ad-body strong { display: block; font-size: .98rem; margin-bottom: 4px; }
.ad-body p { margin: 0 0 12px; }
.ad-mid { min-height: 128px; align-content: center; }

/* --- آگهی تصویری صفحه اول --- */
.ad-card-img { overflow: hidden; border-style: solid; border-color: var(--line-2); }
.ad-card-img .ad-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; z-index: 0;
  opacity: .9; transition: transform .5s ease, opacity .3s ease;
}
.ad-card-img::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(14,20,27,.94) 0%, rgba(14,20,27,.82) 42%, rgba(14,20,27,.30) 72%, rgba(14,20,27,.12) 100%);
}
.ad-card-img > .ad-label,
.ad-card-img > .ad-body { position: relative; z-index: 2; }
.ad-card-img:hover .ad-bg { transform: scale(1.03); opacity: 1; }
.ad-card-img .ad-body strong { font-size: 1.05rem; }
.ad-mid.ad-card-img { min-height: 168px; }
.ad-side.ad-card-img { min-height: 210px; align-content: end; }
@media (max-width: 720px) {
  .ad-card-img::after {
    background: linear-gradient(180deg, rgba(14,20,27,.55) 0%, rgba(14,20,27,.90) 55%, rgba(14,20,27,.96) 100%);
  }
  .ad-mid.ad-card-img { min-height: 190px; }
}

/* --- فوتر --- */
.footer-inner {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 28px; flex-wrap: wrap; padding-bottom: 26px;
}
.footer-brand p { margin: 8px 0 0; max-width: 34ch; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-nav a { color: #A9B4C0; font-size: .88rem; }
.footer-nav a:hover { color: #fff; }
.site-footer .copyright { border-top: 1px solid rgba(255, 255, 255, .08); padding: 14px 0; }

@media (max-width: 1080px) {
  .home-grid { grid-template-columns: minmax(0, 1fr) 320px; }
  .hero-panel { padding: 34px 28px 30px; }
}
@media (max-width: 900px) {
  .home-grid { grid-template-columns: 1fr; }
  .topstrip-ad-img { height: 220px; }
  .topstrip-inner { flex-wrap: wrap; padding-block: 6px; }
  .header-actions { display: none; }
  .site-nav { margin-inline: 0; }
}
@media (max-width: 560px) {
  .hero-panel { padding: 26px 18px 24px; border-radius: 16px; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-search button { flex: 1 1 100%; }
  .topstrip-note, .topstrip-meta { display: none; }
  .topstrip-ad-img { height: 150px; }
}

/* --- گالری تصاویر مطلب --- */
.article-gallery { margin: 28px 0; }
.article-gallery h2 { font-size: 1.05rem; margin: 0 0 12px; }
.gallery-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.gallery-grid a { display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden;
  background: var(--surface-3); border: 1px solid var(--line); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
