/* ================================================================
   imengostarshimi.com — ایمن گستر شیمی
   بعد از main.css لود می‌شود
   پالت از کاتالوگ شرکت: PANTONE 466 PC + 467 PC روی سفید و ذغالی
   ================================================================ */

:root {
  /* طلایی برند — دقیقا از کاتالوگ نمونه‌برداری شده */
  --gold:         #c2a476;   /* PANTONE 466 PC */
  --gold-light:   #dcc79a;   /* PANTONE 467 PC */
  --gold-tint:    #e9dcc4;
  --gold-pale:    #f7f1e6;

  /* طلایی روشن روی سفید کنتراست کافی ندارد؛ برای متن و لینک از این تیره‌تر */
  --brand:        #8a6a35;
  --brand-dark:   #6b5127;
  --brand-light:  var(--gold-tint);
  --brand-bg:     var(--gold-pale);
  --accent:       var(--gold);
  --accent-light: var(--gold-pale);

  --ink:          #1c1f24;   /* ذغالی تیتر و لوگوی کاتالوگ */
  --text:         #1c1f24;
  --text-muted:   #6d6a63;
  --border:       #e6e0d5;
  --bg:           #ffffff;
  --bg-alt:       #faf7f1;
  --radius:       10px;
  --radius-lg:    16px;
  --shadow:       0 2px 16px rgba(120, 96, 52, .10);
  --shadow-lg:    0 8px 32px rgba(120, 96, 52, .16);
  --mono:         'Courier New', ui-monospace, monospace;
}

/* ================================================================
   TOPBAR
   ================================================================ */
.topbar {
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  padding: 7px 0;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar-viewport { display: contents; }
.topbar-items {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.topbar-item {
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: .92;
}
.topbar-item i { font-size: 11px; }
.topbar-phone {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: .5px;
  transition: opacity .2s;
}
.topbar-phone:hover { opacity: .8; }

/* ================================================================
   فرم‌ها (.hf-*) — پیش‌تر داخل بلاک هیرو بود و با حذف آن از دست رفت
   ================================================================ */
.hf-field { margin-bottom: 14px; }
.hf-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.hf-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.hf-input::placeholder { color: #a8a297; }
.hf-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(194,164,118,.28);
}
.hf-select { cursor: pointer; }
.hf-textarea { resize: vertical; min-height: 86px; line-height: 1.9; }
.captcha-row { display: flex; gap: 8px; align-items: stretch; }
.captcha-row .hf-input { flex: 1; min-width: 0; }
.captcha-q {
  font-weight: 700;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.btn-captcha-refresh {
  flex: 0 0 auto;
  width: 44px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  color: var(--brand);
  cursor: pointer;
  font-size: 15px;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-captcha-refresh:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.hf-submit {
  width: 100%;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.hf-submit:hover { background: var(--brand-dark); transform: translateY(-1px); }
.hf-submit:disabled { opacity: .7; cursor: not-allowed; transform: none; }
.hf-msg { margin-top: 12px; padding: 10px 14px; border-radius: var(--radius); font-size: 13px; }
.hf-msg-ok  { background: #f0f7f0; color: #2f5d34; border: 1px solid #b6d4b8; }
.hf-msg-err { background: #fdf2f2; color: #8a2b2b; border: 1px solid #e6b9b9; }

/* ================================================================
   دکمه‌ها
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
}
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-white { background: #fff; color: var(--brand); border-color: #fff; }
.btn-white:hover { background: var(--brand-light); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-white:hover { background: rgba(255,255,255,.15); }

/* ================================================================
   SECTION COMMON
   ================================================================ */
.container { max-width: var(--container, 1160px); margin: 0 auto; padding: 0 24px; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-light);
  color: var(--brand);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.section-title { font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: var(--text); margin-bottom: 8px; position: relative; display: inline-block; }
.section-head { text-align: center; }
.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  border-radius: 4px;
}
.about-text .section-title::after { margin-right: 0; margin-left: auto; }
.section-sub { color: var(--text-muted); font-size: 15px; }

/* ================================================================
   BRANDS
   ================================================================ */
.brands-section { padding: 72px 0; background: var(--bg-alt); }
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.brand-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .25s;
}
.brand-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.brand-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  text-decoration: none;
  color: var(--text);
}
.brand-icon {
  width: 52px;
  height: 52px;
  background: var(--brand-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-size: 22px;
}
.brand-name { font-weight: 700; font-size: 14px; }
.brand-tag { font-size: 11px; color: var(--text-muted); }
.brands-footer { text-align: center; }

/* ================================================================
   SERVICES
   ================================================================ */
.services-section { padding: 72px 0; background: #fff; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: all .25s;
  display: flex;
  flex-direction: column;
}
.service-card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-3px); }
.sc-img { aspect-ratio: 16/9; overflow: hidden; }
.sc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.service-card:hover .sc-img img { transform: scale(1.05); }
.sc-body { padding: 16px; flex: 1; }
.sc-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.sc-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ================================================================
   BANNERS
   ================================================================ */
.banners-section { padding: 20px 0 40px; }
.banners-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.banner-item { border-radius: var(--radius-lg); overflow: hidden; display: block; }
.banner-item img { width: 100%; height: auto; display: block; transition: transform .3s; }
.banner-item:hover img { transform: scale(1.02); }

/* ================================================================
   FEATURES
   ================================================================ */
.features-section { padding: 72px 0; background: var(--bg-alt); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: all .25s;
}
.feature-card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-3px); }
.fc-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  border-radius: 20px 20px 20px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  margin: 0 auto 16px;
  box-shadow: 0 6px 16px rgba(21,100,192,.25);
  transition: transform .25s;
}
.feature-card:hover .fc-icon { transform: rotate(-6deg) scale(1.05); }
.feature-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ================================================================
   ABOUT
   ================================================================ */
.about-section { padding: 72px 0; background: var(--brand-bg); }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-img { border-radius: var(--radius-lg); overflow: hidden; }
.about-img img { width: 100%; height: auto; display: block; }
.about-content { color: var(--text-muted); line-height: 2; font-size: 15px; }

/* ================================================================
   FAQ
   ================================================================ */
.faq-section { padding: 72px 0; background: #fff; }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border: 1.5px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.faq-q {
  width: 100%;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-alt);
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text);
  text-align: right;
  gap: 12px;
  transition: background .2s;
}
.faq-q:hover { background: var(--brand-light); }
.faq-q[aria-expanded="true"] { background: var(--brand-light); color: var(--brand); }
.faq-icon { flex-shrink: 0; color: var(--brand); font-size: 14px; }
.faq-a { padding: 16px 20px; }
.faq-a p { color: var(--text-muted); line-height: 1.9; font-size: 14px; margin: 0; }

/* ================================================================
   CTA BANNER
   ================================================================ */
.cta-banner-section {
  background: linear-gradient(135deg, #0d4fa0, #1564c0);
  padding: 90px 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-wave-top {
  position: absolute;
  top: -1px; left: 0;
  width: 100%;
  line-height: 0;
  z-index: 1;
}
.cta-wave-top svg { width: 100%; height: 60px; display: block; }
.cta-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.cta-deco-1 {
  width: 240px; height: 240px;
  bottom: -100px; right: 8%;
  background: radial-gradient(circle, rgba(255,255,255,.10), transparent 70%);
}
.cta-deco-2 {
  width: 160px; height: 160px;
  top: -40px; left: 5%;
  background: radial-gradient(circle, rgba(255,255,255,.08), transparent 70%);
}
.cta-banner-inner { position: relative; z-index: 2; }
.cta-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  margin-bottom: 20px;
}
.cta-banner-title { font-size: clamp(22px, 3.5vw, 36px); font-weight: 800; margin-bottom: 10px; }
.cta-banner-sub { opacity: .8; margin-bottom: 28px; }
.cta-banner-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ================================================================
   SEO TEXT
   ================================================================ */
.seo-text-section { padding: 60px 0; background: var(--bg-alt); }
.seo-text-inner h2 { font-size: 20px; font-weight: 700; margin-bottom: 24px; text-align: center; }
.seo-text-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.seo-text-cols h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--brand); }
.seo-text-cols p { color: var(--text-muted); line-height: 2; font-size: 14px; }

/* ================================================================
   HEADER OVERRIDES
   ================================================================ */
.hdr-phone {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff !important;
  text-decoration: none;
  border: 2px solid var(--brand);
  transition: all .2s;
}
.hdr-phone:hover { background: var(--brand-dark); border-color: var(--brand-dark); }

/* ================================================================
   دکمه شناور واتساپ (تنها دکمه شناور — سمت چپ پایین)
   ================================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 54px;
  height: 54px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(37,211,102,.45);
  z-index: 900;
  transition: transform .2s;
}
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }
.whatsapp-float:hover { transform: scale(1.08); }

/* ================================================================
   فوتر
   ================================================================ */
/* CTA نواری بالای فوتر */
.footer-cta {
  background: linear-gradient(120deg, var(--brand-dark), var(--brand));
  padding: 28px 0;
  position: relative;
  overflow: hidden;
}
.footer-cta::after {
  content: '';
  position: absolute;
  top: -40px; left: -40px;
  width: 180px; height: 180px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
}
.footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.footer-cta-text {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
}
.footer-cta-icon {
  font-size: 38px;
  opacity: .9;
}
.footer-cta-text strong { display: block; font-size: 19px; margin-bottom: 4px; }
.footer-cta-text span { font-size: 14px; opacity: .85; }
.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--brand);
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  transition: transform .2s;
  white-space: nowrap;
}
.footer-cta-btn:hover { transform: translateY(-2px); }

/* بدنه فوتر */
.mry-footer {
  background: var(--ink);
  color: #e7e1d4;
  padding: 0;
}
.mry-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.3fr;
  gap: 40px;
  padding: 50px 0 36px;
}
.mry-footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 16px;
}
.mry-footer-logo img {
  height: 62px;
  width: auto;
  background: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}
.mry-logo-icon {
  width: 42px; height: 42px;
  background: var(--brand);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px;
}
.mry-logo-text { font-size: 19px; font-weight: 800; color: #fff; }
.mry-footer-desc { font-size: 13.5px; line-height: 2; color: #c6bfb0; margin-bottom: 18px; }

.mry-trust-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.mry-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(21,100,192,.18);
  color: var(--gold-light);
  border: 1px solid rgba(21,100,192,.3);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.mry-socials { display: flex; gap: 10px; }
.mry-social {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 17px;
  transition: transform .2s, opacity .2s;
}
.mry-social.ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#bc1888); }
.mry-social.tg { background: #229ed9; }
.mry-social.wa { background: #25d366; }
.mry-social:hover { transform: translateY(-3px); }

.mry-footer-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mry-footer-title i { color: var(--brand); font-size: 14px; }

.mry-footer-links { list-style: none; padding: 0; margin: 0; }
.mry-footer-links li { margin-bottom: 11px; }
.mry-footer-links a {
  color: #c6bfb0;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color .2s, padding .2s;
}
.mry-footer-links a i { font-size: 11px; color: var(--brand); }
.mry-footer-links a:hover { color: #fff; padding-right: 4px; }

.mry-contact-list { list-style: none; padding: 0; margin: 0; }
.mry-contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.mry-contact-ic {
  width: 40px; height: 40px;
  flex-shrink: 0;
  background: rgba(21,100,192,.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light); font-size: 16px;
}
.mry-contact-list small { display: block; font-size: 11px; color: #a09889; margin-bottom: 2px; }
.mry-contact-list a, .mry-contact-list span { color: #f2ede3; text-decoration: none; font-size: 14px; font-weight: 600; }
.mry-contact-list a:hover { color: var(--brand); }

.mry-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
}
.mry-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #b5ad9d;
}
.mry-footer-credit { color: #b5ad9d; text-decoration: none; }
.mry-footer-credit strong { color: var(--gold-light); }
.mry-footer-credit:hover strong { color: var(--brand); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-form-wrap { order: -1; }
  .about-inner { grid-template-columns: 1fr; }
  .seo-text-cols { grid-template-columns: 1fr; }
  .process-steps { flex-direction: column; }
  .ps-arrow { transform: rotate(90deg); }
  .ps-item { max-width: 100%; }
}

/* ================================================================
   موبایل — هدر و topbar
   ================================================================ */
@media (max-width: 768px) {

  /* ---- TOPBAR اسلایدر ۲تا۲تا ---- */
  .topbar { padding: 6px 0; }
  .topbar-inner {
    justify-content: center;
    align-items: center;
    gap: 0;
  }
  .topbar-phone { display: none; }

  /* viewport: عرض کامل، فقط ۲ آیتم دیده می‌شه */
  .topbar-viewport {
    display: block;
    width: 100%;
    overflow: hidden;
    height: 20px;
  }
  /* track: عرض ۲۰۰٪ (۴ آیتم)، اسلاید می‌شه */
  .topbar-items {
    display: flex;
    flex-wrap: nowrap;
    width: 200%;
    gap: 0;
    transition: transform .6s ease;
    transform: translateX(calc(var(--tb-page, 0) * 50%));
  }
  .topbar-item {
    flex: 0 0 25%;
    justify-content: center;
    white-space: nowrap;
    font-size: 11.5px;
    opacity: 1;
  }
  .topbar-item i { font-size: 10px; }

  /* ---- هدر اصلی ---- */
  .hdr-inner {
    flex-wrap: nowrap;
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
    align-items: center;
  }
  .site-logo { order: 3; flex-shrink: 0; }
  .site-logo img { height: 38px; }
  .hdr-ham { order: 1; }
  .hdr-mobile-actions {
    order: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: flex-start;
  }
  .hdr-m-phone {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--brand-light);
    color: var(--brand);
    padding: 7px 12px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: 1.5px solid var(--brand);
  }
  .hdr-m-phone svg { width: 14px; height: 14px; }
  .hdr-m-phone span { direction: ltr; }
  .hdr-m-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    cursor: pointer;
  }
  .hdr-m-icon svg { width: 16px; height: 16px; }
  .hdr-actions { display: none; }
}

@media (max-width: 600px) {
  .banners-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 16px; }
  .hs-num { font-size: 20px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .brands-grid { grid-template-columns: repeat(3, 1fr); }

  /* فوتر موبایل */
  .mry-footer-grid { grid-template-columns: 1fr; gap: 30px; padding: 36px 0 24px; }
  .footer-cta-inner { flex-direction: column; text-align: center; }
  .footer-cta-text { flex-direction: column; text-align: center; gap: 10px; }
  .footer-cta-btn { width: 100%; justify-content: center; }
  .mry-footer-bottom-inner { flex-direction: column; text-align: center; gap: 8px; }

  /* واتساپ شناور بالاتر از نوار تماس موبایل */
  .whatsapp-float { bottom: 78px; left: 16px; width: 48px; height: 48px; }
  .whatsapp-float svg { width: 24px; height: 24px; }
}

@media (max-width: 380px) {
  .hdr-m-phone { padding: 6px 9px; font-size: 12px; }
  .site-logo img { height: 32px; }
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   اصلاح Breadcrumb — هم‌تراز با container سایت
   ================================================================ */
.breadcrumb .container {
  max-width: var(--container, 1160px);
  margin: 0 auto;
  padding: 0 24px;
}
/* وقتی breadcrumb مستقیماً ol دارد (بدون container) — مثل صفحات مقاله */
.breadcrumb > ol {
  max-width: var(--container, 1160px);
  margin: 0 auto;
  padding: 0 24px;
}
.breadcrumb ol {
  margin: 0 auto;
  justify-content: flex-start;
}
.breadcrumb .container ol { padding: 0; }
@media (max-width: 768px) {
  .breadcrumb .container,
  .breadcrumb > ol { padding: 0 16px; }
}
/* ================================================================
   فهرست مطالب و بخش‌های h2 — صفحه (page)
   ================================================================ */

/* ---- فهرست مطالب ---- */
.page-type-page .toc-box {
  background: linear-gradient(135deg, var(--brand-bg) 0%, #fff 100%);
  border: 1px solid var(--border);
  border-right: 4px solid var(--brand);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  margin: 28px 0 36px;
  box-shadow: var(--shadow);
}
.page-type-page .toc-title {
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 14px;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-type-page .toc-title svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}
.page-type-page .toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.page-type-page .toc-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  border-bottom: none;
  background: rgba(255, 255, 255, .7);
  transition: background .15s, transform .15s;
}
.page-type-page .toc-list li:hover {
  background: #fff;
  transform: translateX(-2px);
}
.page-type-page .toc-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.page-type-page .toc-list li a {
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.5;
  flex: 1;
}
.page-type-page .toc-list li a:hover {
  color: var(--brand);
}

/* ---- بخش‌های h2 ---- */
.page-type-page .page-content-sections {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.page-type-page .content-section {
  background: var(--bg-alt, #faf7f1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: 0 1px 4px rgba(21, 100, 192, .06);
}
.page-type-page .content-section h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 16px;
  padding: 0 0 12px;
  border-right: none;
  border-bottom: 2px solid var(--brand-light, #e9dcc4);
  color: var(--text);
  line-height: 1.5;
  scroll-margin-top: 90px;
}
.page-type-page .content-section h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1em;
  background: var(--brand);
  border-radius: 2px;
  margin-left: 10px;
  vertical-align: -2px;
}
.page-type-page .content-section h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 20px 0 10px;
  color: var(--text);
}
.page-type-page .content-section p {
  margin: 0 0 14px;
  color: var(--text);
  line-height: 1.9;
}
.page-type-page .content-section p:last-child {
  margin-bottom: 0;
}
.page-type-page .content-section ul,
.page-type-page .content-section ol {
  margin: 0 0 14px;
  padding-right: 22px;
}
.page-type-page .content-section li {
  margin-bottom: 6px;
  line-height: 1.8;
}
.page-type-page .content-section img {
  border-radius: var(--radius);
  margin: 16px auto;
}
.page-type-page .content-section table {
  margin: 16px 0;
}

@media (max-width: 768px) {
  .page-type-page .toc-box {
    padding: 18px 16px;
    margin: 20px 0 28px;
  }
  .page-type-page .content-section {
    padding: 18px 16px;
  }
  .page-type-page .content-section h2 {
    font-size: 18px;
  }
}


/* ================================================================
   IGS — هیرو
   کاتالوگ شرکت سراسر شش‌ضلعی طلایی روی سفید است؛ همان را می‌آوریم.
   ================================================================ */
.igs-hero {
  position: relative;
  background: #fff;
  color: var(--ink);
  padding: 58px 0 66px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
/* خوشه شش‌ضلعی — عنصر امضای صفحه */
.igs-hero-hex {
  position: absolute;
  top: 50%;
  left: -60px;
  transform: translateY(-50%);
  width: min(520px, 46vw);
  opacity: .9;
  pointer-events: none;
  z-index: 1;
}
.igs-hero-inner { position: relative; z-index: 2; max-width: 700px; }
.igs-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-pale);
  border: 1px solid var(--gold-tint);
  color: var(--brand);
  padding: 6px 15px; border-radius: 50px;
  font-size: 13px; font-weight: 600; margin-bottom: 18px;
}
.igs-hero h1 {
  font-size: clamp(23px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.6;
  margin-bottom: 14px;
  color: var(--ink);
}
/* زیر تیتر یک خط طلایی، مثل نوارهای کاتالوگ */
.igs-hero h1::after {
  content: '';
  display: block;
  width: 88px; height: 5px;
  margin-top: 18px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 3px;
}
.igs-hero p {
  font-size: clamp(14px, 1.6vw, 16.5px);
  line-height: 2.1;
  color: var(--text-muted);
  margin: 18px 0 26px;
}
.igs-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.igs-hero .btn-primary { background: var(--ink); border-color: var(--ink); }
.igs-hero .btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }

/* نوار آمار — قاب طلایی نازک، بدون پرکردن */
.igs-stats {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 42px;
  border: 1.5px solid var(--gold-tint);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
}
.igs-stat { padding: 18px 14px; text-align: center; border-left: 1px solid var(--gold-tint); }
.igs-stat:last-child { border-left: 0; }
.igs-stat b {
  display: block; font-size: 25px; font-weight: 800;
  color: var(--brand); font-variant-numeric: tabular-nums;
}
.igs-stat span { font-size: 12.5px; color: var(--text-muted); }

/* ================================================================
   IGS — گرید دسته‌بندی
   ================================================================ */
.igs-cats { padding: 66px 0; background: #fff; }
.igs-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px; align-items: start; }
.igs-cat {
  display: block; text-decoration: none; color: var(--text);
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 18px 20px 48px;
  position: relative;
  transition: border-color .22s, box-shadow .22s, transform .22s;
}
/* نشانه شش‌ضلعی کوچک — همان فرم کاتالوگ */
.igs-cat::before {
  content: '';
  position: absolute;
  top: 20px; left: 18px;
  width: 15px; height: 17px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: background .22s;
}
.igs-cat:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-2px); }
.igs-cat:hover::before { background: var(--brand); }
.igs-cat-title { display: block; font-size: 15.5px; font-weight: 700; line-height: 1.7; margin-bottom: 4px; }
.igs-cat-count { display: block; font-size: 12.5px; color: var(--text-muted); }
.igs-cat-sub { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.igs-cat-sub span {
  font-size: 11.5px; color: var(--text-muted);
  background: #fff; border: 1px solid var(--border);
  padding: 3px 9px; border-radius: 50px;
}

/* ================================================================
   IGS — برچسب معرف (امضای طراحی)
   جدول مشخصات محصول مثل برچسب روی بطری معرف رندر می‌شود
   ================================================================ */
.page-type-product .section-table {
  border: 1.5px solid var(--gold-tint);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  margin: 26px 0;
}
.page-type-product .section-table .section-title {
  display: block; margin: 0;
  background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 700;
  padding: 11px 18px;
  border-bottom: 3px solid var(--gold);
}
.page-type-product .section-table .section-title::after { display: none; }
.page-type-product .section-table .table-scroll { padding: 0; }
.page-type-product .section-table table { width: 100%; border-collapse: collapse; }
.page-type-product .section-table td { padding: 11px 18px; border-bottom: 1px solid var(--border); font-size: 14px; }
.page-type-product .section-table tr:last-child td { border-bottom: 0; }
.page-type-product .section-table td:first-child {
  width: 34%; color: var(--text-muted); background: var(--bg-alt); font-weight: 600;
}
/* شماره CAS، کد کالا و نام لاتین همیشه چپ‌چین و تک‌عرض */
.page-type-product .section-table td:last-child {
  font-variant-numeric: tabular-nums;
}
.page-type-product .section-table tr td:last-child:not(:lang(fa)) { direction: ltr; text-align: left; }
.igs-ltr { direction: ltr; text-align: left; font-family: var(--mono); font-size: 13.5px; }

/* ================================================================
   IGS — صفحه برند
   ================================================================ */
.igs-brand-head {
  display: flex; align-items: center; gap: 18px;
  background: var(--bg-alt); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px 20px; margin-bottom: 26px;
}
.igs-brand-head img { width: 84px; height: 84px; object-fit: contain; background: #fff; border-radius: var(--radius); padding: 6px; }
.igs-brand-head .igs-brand-count { font-size: 13px; color: var(--text-muted); }
.igs-products { margin: 8px 0 36px; }
.igs-products-title { margin-bottom: 20px; }

/* شبکه: همه کارت های یک ردیف هم قد — grid-auto-rows: 1fr */
.igs-prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  grid-auto-rows: 1fr;
  gap: 18px;
}

.igs-prod {
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.igs-prod:hover {
  border-color: var(--gold);
  box-shadow: 0 6px 24px rgba(120, 96, 52, .13);
  transform: translateY(-3px);
}

/* ---- تصویر ----
   عکس absolute است تا در ارتفاع والد حساب نشود؛ وگرنه aspect-ratio
   شکسته می شود و کارت ها قد و نیم قد می شوند. */
.igs-prod-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: #fff;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.igs-prod-media::after {          /* خط طلایی زیر تصویر — همان زبان برچسب معرف */
  content: '';
  position: absolute;
  inset-inline: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  opacity: 0; transition: opacity .2s;
}
.igs-prod:hover .igs-prod-media::after { opacity: 1; }
.igs-prod-media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 14px;
  display: block;
  transition: transform .3s;
}
.igs-prod:hover .igs-prod-media img { transform: scale(1.04); }
.igs-prod-noimg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt);
  z-index: 0;
}
.igs-prod-media img { z-index: 1; }
.igs-prod-noimg svg { width: 42px; height: 42px; fill: var(--gold-tint); }

/* ---- بدنه ---- */
.igs-prod-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px 15px 13px;
}

/* عنوان دقیقا دو خط جا می گیرد تا ردیف ها هم تراز بمانند.
   متن کامل در HTML هست و فقط بصری clamp می شود. */
.igs-prod-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(2 * 1.75em);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.75;
  color: var(--ink);
}
.igs-prod:hover .igs-prod-title { color: var(--brand); }

/* کد کالا — چیزی که خریدار آزمایشگاهی با آن جستجو می کند */
.igs-prod-code {
  align-self: flex-start;
  margin-top: 8px;
  padding: 2px 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .02em;
  color: var(--brand);
  background: var(--gold-pale);
  border: 1px solid var(--gold-tint);
  border-radius: 5px;
  direction: ltr;
}

.igs-prod-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 9px;
  font-size: 12.5px;
  line-height: 1.95;
  color: var(--text-muted);
}

/* نوار پایین همیشه ته کارت می چسبد */
.igs-prod-foot {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--border);
}
.igs-prod-brand {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.igs-prod-cta {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  position: relative;
  padding-inline-start: 14px;
}
.igs-prod-cta::before {           /* پیکان با border — کاراکتر ‹ در RTL برعکس می شود */
  content: '';
  position: absolute;
  inset-inline-start: 0; top: 50%;
  width: 6px; height: 6px;
  border-inline-start: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  transition: transform .2s;
}
.igs-prod:hover .igs-prod-cta::before { transform: translateY(-50%) rotate(45deg) translate(2px, 2px); }

/* هدر صفحه برند */
.igs-brand-head {
  display: flex; align-items: center; gap: 18px;
  background: var(--bg-alt); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px 20px; margin-bottom: 26px;
}
.igs-brand-head img { width: 84px; height: 84px; object-fit: contain; background: #fff; border-radius: var(--radius); padding: 6px; }

/* ================================================================
   IGS — تصاویر داخل محتوا
   وسط چین، با مارجین یکسان بالا و پایین، و قاب ملایم
   ================================================================ */
.page-content img,
.section-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
}
/* تصویری که تنها فرزند یک پاراگراف است — مارجین پاراگراف دوباره اضافه نشود */
.page-content p:has(> img:only-child),
.section-content p:has(> img:only-child) { margin: 0; text-align: center; }
.page-content figure,
.section-content figure { margin: 30px auto; text-align: center; }
.page-content figure img,
.section-content figure img { margin: 0 auto 10px; }
.page-content figcaption,
.section-content figcaption { font-size: 12.5px; color: var(--text-muted); }
/* تصاویر ریز (آیکون داخل متن) نباید بلاک و وسط شوند */
.page-content img[width]:not([width=""]),
.section-content img[width]:not([width=""]) { max-width: 100%; }
.page-content a > img,
.section-content a > img { cursor: zoom-in; }

/* ================================================================
   IGS — نوار استعلام قیمت
   ================================================================ */
.igs-quote { padding: 62px 0; background: var(--gold-pale); border-top: 1px solid var(--border); }
.igs-quote-inner { display: grid; grid-template-columns: 1fr 420px; gap: 34px; align-items: start; }
.igs-quote-text h2 { font-size: clamp(20px, 2.6vw, 27px); font-weight: 800; margin-bottom: 12px; }
.igs-quote-text p { color: var(--text-muted); line-height: 2; font-size: 14.5px; }
.igs-quote-points { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.igs-quote-points li { position: relative; padding-right: 24px; font-size: 14.5px; line-height: 2; }
.igs-quote-points li::before {
  content: '';
  position: absolute;
  top: 11px; right: 0;
  width: 11px; height: 12px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.igs-form-card { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); }
.igs-form-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; display: flex; gap: 8px; align-items: center; }
.igs-form-title i { color: var(--brand); }

/* ================================================================
   IGS — ریسپانسیو
   ================================================================ */
@media (max-width: 900px) {
  .igs-quote-inner { grid-template-columns: 1fr; }
  .igs-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .igs-hero-hex { opacity: .35; left: -140px; }
}
@media (max-width: 600px) {
  .igs-hero { padding: 40px 0 46px; }
  .igs-hero-hex { display: none; }
  .igs-stats { grid-template-columns: repeat(2, 1fr); }
  .igs-stat:nth-child(2) { border-left: 0; }
  .igs-stat:nth-child(-n+2) { border-bottom: 1px solid var(--gold-tint); }
  .igs-hero h1 { font-size: 22px; line-height: 1.75; }
  .igs-hero-btns .btn { flex: 1; justify-content: center; min-width: 0; }
  .igs-cat-grid { grid-template-columns: 1fr 1fr; }
  .igs-cat { padding: 15px 13px; border-right-width: 3px; }
  .igs-cat-title { font-size: 13.5px; }
  .igs-cat-sub { display: none; }
  .igs-prod-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .igs-prod-body { padding: 11px 12px 11px; }
  .igs-prod-title { font-size: 12.5px; }
  .igs-prod-excerpt { display: none; }
  .igs-prod-media img { padding: 10px; }
  .igs-prod-cta { font-size: 11px; }
  .page-content img, .section-content img { margin: 22px auto; }
  .page-type-product .section-table td:first-child { width: 42%; }
}
@media (hover: none) {
  .igs-cat:hover, .igs-prod:hover { transform: none; box-shadow: none; }
  .igs-cat:active { border-color: var(--brand); }
}
@media (prefers-reduced-motion: reduce) {
  .igs-cat, .igs-prod, .btn { transition: none; }
}


/* ================================================================
   IGS — جلوگیری از سرریز افقی هدر
   منوی این سایت آیتم‌های بیشتری از سایت مبدا دارد و .hdr-inner
   (فلکس) بچه‌هایش را کوچک نمی‌کرد، پس نوار جستجو از لبه چپ بیرون
   می‌زد و کل صفحه اسکرول افقی می‌گرفت (متن سمت راست بریده می‌شد).
   ================================================================ */
html, body { overflow-x: clip; }           /* ضامن نهایی */
.hdr-inner { min-width: 0; }
.hdr-inner > * { min-width: 0; }
.hdr-nav { min-width: 0; flex: 1 1 auto; }
.hdr-actions { flex: 0 1 auto; }
.hdr-search form { max-width: 100%; }
.hdr-search input { width: 110px; }
.hdr-search input:focus { width: 150px; }

@media (max-width: 1200px) {
  .nav-list > .ni > a { padding-left: 10px; padding-right: 10px; font-size: 14px; }
  .hdr-search { display: none; }           /* جستجو در drawer موبایل هست */
}
@media (max-width: 1040px) {
  .hdr-phone { display: none; }
}

/* ================================================================
   IGS — لوگو
   ================================================================ */
.hdr-logo img, .mry-footer-logo img { max-height: 52px; width: auto; }
@media (max-width: 600px) { .hdr-logo img { max-height: 40px; } }
