/* پارس فولاد — شیوه‌نامه سایت
   زبان بصری: برگه نقشه فنی کارگاه. رنگ‌ها از ماده کار آمده‌اند:
   فولاد آبی‌خاکستری، ورق گالوانیزه، رنگ ضدزنگ اکسید قرمز و جرقه جوش. */

@font-face { font-family: "Estedad"; src: url("../fonts/Estedad-arabic-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Estedad"; src: url("../fonts/Estedad-latin-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --zinc: #e7eae7;
  --zinc-2: #d9ddd9;
  --paper: #f6f7f4;
  --steel-0: #131e25;
  --steel: #1d2a33;
  --steel-2: #2a3a45;
  --steel-3: #3c4f5b;
  --primer: #a9442a;
  --primer-hi: #c4552f;
  --weld: #d6a24c;
  --weld-hi: #e8b96a;
  --ink: #1d2a33;
  --muted: #56646c;
  --rule: rgba(29, 42, 51, .16);
  --rule-light: rgba(231, 234, 231, .18);
  --radius: 3px;
  --wrap: 1200px;
  --shadow-1: 0 1px 2px rgba(19, 30, 37, .06), 0 8px 24px -12px rgba(19, 30, 37, .28);
  --shadow-2: 0 2px 4px rgba(19, 30, 37, .08), 0 18px 40px -18px rgba(19, 30, 37, .45);
  --display: "Estedad", "Vazirmatn", Tahoma, sans-serif;
  --body: "Vazirmatn", Tahoma, sans-serif;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.9;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01";
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.3; margin: 0; letter-spacing: -.012em; }
p { margin: 0 0 1em; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; background: var(--steel); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--weld); outline-offset: 3px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

/* درز جوش: خط امضای سایت، مرز بین بخش‌ها */
.seam { height: 3px; background:
  repeating-linear-gradient(90deg, var(--weld) 0 14px, rgba(214,162,76,.25) 14px 22px); }

/* ---------- دکمه‌ها ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font: 600 1rem/1 var(--body);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .12s var(--ease), box-shadow .18s var(--ease);
}
.btn-primary { background: var(--primer); color: #fff; box-shadow: 0 10px 24px -14px rgba(169, 68, 42, .9); }
.btn-primary:hover { background: var(--primer-hi); transform: translateY(-1px); box-shadow: 0 16px 30px -16px rgba(169, 68, 42, 1); }
.btn-primary:active { transform: translateY(0); }
.btn-primary .ltr { font-weight: 700; padding-inline-start: .65rem; border-inline-start: 1px solid rgba(255,255,255,.35); }
.btn-ghost { border-color: var(--steel); color: var(--steel); }
.btn-ghost:hover { background: var(--steel); color: var(--paper); }
.btn-on-dark { border-color: rgba(231,234,231,.5); color: var(--paper); }
.btn-on-dark:hover { background: var(--paper); color: var(--steel); border-color: var(--paper); }
.link-more { color: var(--primer); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(169,68,42,.45); padding-bottom: 2px; transition: border-color .15s, color .15s; }
.link-more:hover { color: var(--primer-hi); border-bottom-color: currentColor; }

/* ---------- سربرگ ---------- */
.site-header {
  background: rgba(246, 247, 244, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 50;
}
.header-row { display: flex; align-items: center; gap: 2rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.4rem; color: var(--steel); }
.brand-logo { max-height: 48px; width: auto; }
.logo-mark { width: 32px; height: 32px; fill: var(--primer); flex: none; }
.site-nav { display: flex; gap: 1.7rem; margin-inline-start: auto; }
.site-nav a { text-decoration: none; font-weight: 500; color: var(--muted); padding-block: .45rem; border-bottom: 2px solid transparent; transition: color .15s; }
.site-nav a:hover { color: var(--steel); }
.site-nav a[aria-current="page"] { color: var(--steel); border-color: var(--primer); }
.header-call { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 700; background: var(--steel); color: var(--paper); padding: .6rem 1.1rem; border-radius: var(--radius); transition: background-color .15s; }
.header-call svg { width: 18px; height: 18px; fill: var(--weld); }
.header-call:hover { background: var(--steel-2); }
.nav-toggle { display: none; }

/* ---------- قهرمان: برگه نقشه ---------- */
.hero {
  position: relative;
  background-color: var(--steel-0);
  background-image:
    radial-gradient(120% 80% at 80% 0%, rgba(60, 79, 91, .55), transparent 60%),
    linear-gradient(rgba(231,234,231,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(231,234,231,.07) 1px, transparent 1px),
    linear-gradient(rgba(231,234,231,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(231,234,231,.14) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px, 140px 140px, 140px 140px;
  color: var(--paper);
  overflow: hidden;
}
.hero::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3px;
  background: repeating-linear-gradient(90deg, var(--weld) 0 14px, rgba(214,162,76,.25) 14px 22px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 3.5rem; align-items: center; padding-block: clamp(3.5rem, 8vw, 7rem); }
.hero-copy { position: relative; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .95rem; font-weight: 600; color: var(--weld);
  margin-bottom: 1.1rem;
}
.hero-kicker::before { content: ""; width: 26px; height: 2px; background: var(--weld); }
.hero-title {
  font-size: clamp(2.7rem, 6.4vw, 5.2rem);
  font-weight: 850;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 1.3rem;
  text-wrap: balance;
}
.hero-text { font-size: 1.15rem; color: #bcc8ce; max-width: 34em; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.4rem; }
.hero-lines { list-style: none; margin: 0; padding: 1.2rem 0 0; border-top: 1px solid var(--rule-light); display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.hero-lines a { text-decoration: none; color: #9fb0b9; font-weight: 500; transition: color .15s; }
.hero-lines a:hover { color: var(--weld); }
.hero-lines li + li::before { content: "/"; color: rgba(159,176,185,.4); margin-inline-end: 1.4rem; font-weight: 300; }

.hero-visual { position: relative; }
.hero-drawing { width: 100%; height: auto; overflow: visible; }
.hero-drawing path, .hero-drawing circle { stroke: #cfd8dc; stroke-width: 2; stroke-linecap: square; }
.hero-drawing .d-thick { stroke-width: 4; stroke: #fff; }
.hero-drawing .d-thin { stroke-width: 1.2; stroke: rgba(207,216,220,.75); }
.hero-drawing .d-aux { stroke-width: 1; stroke-dasharray: 6 5; stroke: rgba(207,216,220,.45); }
.hero-drawing .d-dim path { stroke: var(--weld); }
.hero-drawing text { fill: var(--weld-hi); font: 600 13px var(--body); }
.hero-visual.has-photo .hero-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-2); }
.hero-visual.has-photo .hero-drawing { position: absolute; inset: auto -3% -10% auto; width: 56%; background: rgba(19,30,37,.9); padding: .6rem; border: 1px solid rgba(231,234,231,.22); }

/* کادر نقشه، مثل برگه‌های اجرایی */
.sheet-tag {
  position: absolute; inset-inline-end: 0; bottom: -.5rem;
  display: flex; border: 1px solid rgba(231,234,231,.28);
  font-size: .78rem; color: #9fb0b9; background: rgba(19,30,37,.72);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.sheet-tag span { padding: .3rem .8rem; }
.sheet-tag span + span { border-inline-start: 1px solid rgba(231,234,231,.28); }
.sheet-tag span:first-child { color: var(--weld); font-weight: 700; }

@media (prefers-reduced-motion: no-preference) {
  .hero-drawing path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s cubic-bezier(.6,.1,.3,1) forwards; }
  .hero-drawing .d-aux { stroke-dasharray: 1; }
  .hero-drawing .s2 path { animation-delay: .35s; }
  .hero-drawing .s3 path { animation-delay: .8s; }
  .hero-drawing .s4 path { animation-delay: 1.35s; animation-duration: .7s; }
  .hero-drawing text { opacity: 0; animation: fade .4s 1.9s forwards; }
  .hero-drawing .d-aux { animation-name: draw-dash; }
  .sheet-tag { opacity: 0; animation: fade .5s 2.1s forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes draw-dash { 0% { stroke-dashoffset: 1; } 99% { stroke-dashoffset: 0; stroke-dasharray: 1; } 100% { stroke-dashoffset: 0; stroke-dasharray: 6 5; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- نقشه‌های کوچک ---------- */
.drawing { width: 100%; height: auto; }
.drawing path, .drawing circle { stroke: currentColor; stroke-width: 2.2; stroke-linecap: square; stroke-linejoin: miter; }
.drawing .d-thick { stroke-width: 5; }
.drawing .d-thin { stroke-width: 1.3; }
.drawing .d-aux { stroke-width: 1; stroke-dasharray: 4 4; opacity: .6; }

/* کاغذ شطرنجی پشت نقشه‌ها */
.grid-paper {
  background-color: var(--zinc);
  background-image:
    linear-gradient(rgba(29,42,51,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,42,51,.07) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* ---------- بخش‌ها ---------- */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-tight { padding-block: 2.5rem clamp(3.5rem, 7vw, 6rem); }
.section-zinc { background: var(--zinc); }
.section-head { margin-bottom: 2.6rem; max-width: 46rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; margin-bottom: .5rem; }
.section-head p { color: var(--muted); margin: 0; }
.section-head-split { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.section-head-light h2 { color: var(--paper); }
.section-head-light p { color: #aab6bc; }

/* ---------- خطوط تولید: چهار کارت ---------- */
.lines { background: var(--paper); padding-block: clamp(3.5rem, 7vw, 6rem); }
.line-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 1.4rem; }
.line-row {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--rule); border-radius: var(--radius);
  text-decoration: none; overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.line-row::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--primer); transform: scaleX(0); transform-origin: right; transition: transform .25s var(--ease); }
.line-row:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--steel-3); }
.line-row:hover::before { transform: scaleX(1); }
.line-media {
  color: var(--steel-3); aspect-ratio: 3 / 2; display: grid; place-items: center;
  padding: 1.2rem; border-bottom: 1px solid var(--rule);
  background-color: var(--zinc);
  background-image:
    linear-gradient(rgba(29,42,51,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,42,51,.07) 1px, transparent 1px);
  background-size: 22px 22px;
}
.line-media img { width: 100%; height: 100%; object-fit: cover; }
.line-row:hover .line-media { color: var(--primer); }
.line-copy { padding: 1.2rem 1.3rem .6rem; }
.line-copy h3 { font-size: 1.45rem; font-weight: 800; color: var(--steel); margin-bottom: .35rem; }
.line-copy p { color: var(--muted); margin: 0; font-size: .95rem; }
.line-items { list-style: none; margin: 0; padding: 0 1.3rem; color: var(--steel-3); font-size: .92rem; }
.line-items li { padding-block: .12rem; }
.line-items li::before { content: ""; display: inline-block; width: 10px; height: 2px; background: var(--weld); vertical-align: middle; margin-inline-end: .6rem; }
.line-go { margin-top: auto; padding: 1rem 1.3rem 1.2rem; font-weight: 600; color: var(--primer); line-height: 1.6; }
.line-go::after { content: ""; display: block; width: 2.2rem; height: 2px; background: currentColor; margin-top: .3rem; transition: width .25s var(--ease); }
.line-row:hover .line-go::after { width: 4rem; }

/* ---------- کارت محصول ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem; }
.product-card {
  position: relative; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius);
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--steel-3); }
.product-media {
  display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden;
  border-bottom: 1px solid var(--rule); color: var(--steel-3);
  background-color: var(--zinc);
  background-image:
    linear-gradient(rgba(29,42,51,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,42,51,.07) 1px, transparent 1px);
  background-size: 22px 22px;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.04); }
.product-media .drawing { width: 74%; transition: transform .35s var(--ease); }
.product-card:hover .product-media .drawing { transform: scale(1.03); }
.product-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: .82rem; color: var(--primer); font-weight: 600; margin: 0 0 .3rem; display: inline-flex; align-items: center; gap: .4rem; }
.product-cat::before { content: ""; width: 12px; height: 2px; background: currentColor; }
.product-title { font-size: 1.32rem; font-weight: 750; margin-bottom: .4rem; }
.product-title a { text-decoration: none; }
.product-title a::after { content: ""; position: absolute; inset: 0; }
.product-title a:hover { color: var(--primer); }
.product-summary { color: var(--muted); font-size: .97rem; }
.product-body .link-more { margin-top: auto; align-self: flex-start; position: relative; z-index: 1; }

.specs { margin: 0 0 1.2rem; font-size: .93rem; }
.specs div { display: flex; align-items: baseline; gap: .5rem; padding-block: .3rem; background-image: radial-gradient(circle, var(--zinc-2) 1px, transparent 1.5px); background-size: 6px 2px; background-repeat: repeat-x; background-position: 0 72%; }
.specs dt { color: var(--muted); white-space: nowrap; }
.specs dd { margin: 0; font-weight: 600; margin-inline-start: auto; text-align: end; }
.specs dt, .specs dd { background: #fff; padding-inline: .15rem; }
.specs-full { font-size: 1rem; }
.specs-full dt, .specs-full dd { background: var(--paper); }

/* ---------- گالری ---------- */
.masonry { columns: 3 280px; column-gap: 1rem; }
.masonry-item { display: block; position: relative; margin-bottom: 1rem; break-inside: avoid; border-radius: var(--radius); overflow: hidden; background: var(--zinc-2); cursor: zoom-in; }
.masonry-item img { width: 100%; transition: transform .45s var(--ease); }
.masonry-item:hover img { transform: scale(1.04); }
.masonry-cap { position: absolute; inset-inline: 0; bottom: 0; padding: 1.8rem .9rem .7rem; color: #fff; font-size: .9rem; background: linear-gradient(transparent, rgba(19,30,37,.85)); opacity: 0; transition: opacity .2s; }
.masonry-item:hover .masonry-cap, .masonry-item:focus-visible .masonry-cap { opacity: 1; }

/* ---------- مسیر سفارش ---------- */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; }
.process li { counter-increment: step; position: relative; padding-top: 3.4rem; padding-inline-end: 1.6rem; }
.process li::after { content: ""; position: absolute; inset-inline: 0; top: 1.1rem; height: 2px; background: var(--zinc-2); }
.process li::before {
  content: counter(step, persian);
  position: absolute; top: 0; inset-inline-start: 0;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: grid; place-items: center;
  font: 800 1.15rem/1 var(--display); color: #fff; background: var(--primer);
  box-shadow: 0 0 0 5px var(--paper);
  z-index: 1;
}
.section-zinc .process li::before { box-shadow: 0 0 0 5px var(--zinc); }
.process li:last-child { padding-inline-end: 0; }
.process h3 { font-size: 1.2rem; font-weight: 750; margin-bottom: .3rem; }
.process p { color: var(--muted); font-size: .97rem; margin: 0; }

/* ---------- درباره و آمار ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
.about-grid h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; margin-bottom: 1rem; }
.prose { max-width: 40em; }
.prose p { color: var(--steel-3); }
.stats { margin: 0; display: grid; gap: 0; background: var(--steel); border-radius: var(--radius); padding: .4rem 1.6rem; box-shadow: var(--shadow-2); }
.stats div { display: flex; flex-direction: column-reverse; padding-block: 1.1rem; }
.stats div + div { border-top: 1px solid var(--rule-light); }
.stats dd { margin: 0; font: 850 clamp(2.3rem, 4.2vw, 3.1rem)/1.1 var(--display); color: var(--weld); }
.stats dt { color: #aab6bc; font-size: .95rem; }
.about-lines { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem; }
.about-line { text-decoration: none; color: var(--steel-3); }
.about-line .drawing, .about-line img {
  background-color: var(--zinc); padding: 1rem; aspect-ratio: 3/2; object-fit: cover;
  border-radius: var(--radius); margin-bottom: .9rem; border: 1px solid var(--rule);
  background-image: linear-gradient(rgba(29,42,51,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(29,42,51,.07) 1px, transparent 1px);
  background-size: 22px 22px;
  transition: border-color .2s, color .2s;
}
.about-line img { padding: 0; }
.about-line:hover .drawing { color: var(--primer); border-color: var(--steel-3); }
.about-line h3 { color: var(--steel); font-size: 1.25rem; font-weight: 750; }
.about-line p { font-size: .95rem; color: var(--muted); }
.about-line:hover h3 { color: var(--primer); }

/* ---------- دعوت به تماس ---------- */
.cta {
  position: relative; background: var(--primer); color: #fff;
  padding-block: clamp(3rem, 6vw, 4.5rem); overflow: hidden;
}
.cta::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px;
  background: repeating-linear-gradient(90deg, var(--weld) 0 14px, rgba(214,162,76,.3) 14px 22px); }
.cta::after {
  content: ""; position: absolute; inset-block: 0; inset-inline-start: -4%; width: 38%;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 14px, transparent 14px 34px);
  pointer-events: none;
}
.cta-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2.5rem; align-items: center; }
.cta h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); font-weight: 850; margin-bottom: .5rem; }
.cta p { margin: 0; color: #f7ded6; max-width: 36em; }
.phones { display: flex; flex-wrap: wrap; gap: .8rem; }
.phone-line { display: flex; flex-direction: column; text-decoration: none; padding: .85rem 1.4rem; border: 2px solid currentColor; border-radius: var(--radius); min-width: 12rem; transition: background-color .18s var(--ease), color .18s var(--ease), transform .12s var(--ease); }
.phone-line small { font-size: .85rem; opacity: .8; }
.phone-line strong { font: 800 1.6rem/1.4 var(--display); }
.cta .phone-line { color: #fff; }
.cta .phone-line:hover { background: #fff; color: var(--primer); transform: translateY(-2px); }
.phones-compact { flex-direction: column; gap: .3rem; margin-bottom: .8rem; }
.phones-compact .phone-line { border: 0; padding: 0; min-width: 0; }
.phones-compact .phone-line:hover { transform: none; background: none; }
.phones-compact .phone-line strong { font-size: 1.2rem; }

/* ---------- سربرگ صفحات داخلی ---------- */
.page-head {
  background-color: var(--zinc);
  background-image: linear-gradient(rgba(29,42,51,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(29,42,51,.06) 1px, transparent 1px);
  background-size: 28px 28px;
  border-bottom: 1px solid var(--rule);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.page-head h1 { font-size: clamp(2.2rem, 4.8vw, 3.5rem); font-weight: 850; margin-bottom: .8rem; }
.page-head p { color: var(--steel-3); max-width: 42em; }
.page-head-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.page-head-art { color: var(--steel-3); }
.page-head-art img { border-radius: var(--radius); }
.page-head .crumbs { margin-bottom: .9rem; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chips a { text-decoration: none; padding: .5rem 1.1rem; border: 1px solid var(--rule); border-radius: 100px; color: var(--steel-3); font-weight: 500; background: #fff; transition: border-color .15s, color .15s, background-color .15s; }
.chips a:hover { border-color: var(--steel); color: var(--steel); }
.chips a[aria-current="page"] { background: var(--steel); border-color: var(--steel); color: var(--paper); }

.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); max-width: 32rem; margin-inline: auto; }
.empty .drawing { width: 220px; margin: 0 auto 1rem; color: var(--steel-3); }
.empty h1 { margin-bottom: .6rem; }

.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; margin-top: 2.5rem; }
.pager a { min-width: 2.6rem; text-align: center; padding: .4rem .6rem; text-decoration: none; border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; }
.pager a[aria-current="page"] { background: var(--steel); color: var(--paper); border-color: var(--steel); }

/* ---------- صفحه محصول ---------- */
.product-page { padding-top: 2rem; }
.crumbs { display: flex; gap: .6rem; font-size: .92rem; margin-bottom: 1.6rem; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--primer); }
.crumbs a + a::before { content: "‹"; margin-inline-end: .6rem; color: var(--zinc-2); }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.product-gallery { position: sticky; top: 96px; }
.product-main { display: block; border-radius: var(--radius); overflow: hidden; background: var(--zinc); cursor: zoom-in; border: 1px solid var(--rule); box-shadow: var(--shadow-1); }
.product-main img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.product-main-drawing {
  cursor: default; padding: 12%; color: var(--steel-3);
  background-image: linear-gradient(rgba(29,42,51,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(29,42,51,.07) 1px, transparent 1px);
  background-size: 26px 26px;
}
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: .6rem; margin-top: .6rem; }
.thumbs a { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; cursor: zoom-in; border: 1px solid var(--rule); transition: border-color .15s; }
.thumbs a:hover { border-color: var(--primer); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 850; margin-bottom: .6rem; }
.lead { font-size: 1.15rem; color: var(--steel-3); }
.small-h { font-size: 1rem; font-weight: 700; color: var(--muted); margin: 1.8rem 0 .5rem; font-family: var(--body); }
.order-box {
  position: relative; background: var(--steel); color: var(--paper);
  padding: 1.7rem; border-radius: var(--radius); margin-block: 1.8rem; overflow: hidden;
  box-shadow: var(--shadow-2);
}
.order-box::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px;
  background: repeating-linear-gradient(90deg, var(--weld) 0 14px, rgba(214,162,76,.25) 14px 22px); }
.order-box h2 { font-size: 1.45rem; margin-bottom: .4rem; }
.order-box p { color: #b8c3c8; }
.order-box .phones { margin-bottom: 1rem; }
.order-box .phone-line { color: var(--paper); border-color: var(--steel-3); background: var(--steel-2); }
.order-box .phone-line:hover { border-color: var(--weld); color: var(--weld-hi); }
.order-box .link-more { color: var(--weld); border-bottom-color: rgba(214,162,76,.5); }
.product-desc { margin-top: 1rem; }

/* ---------- تماس ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3rem; align-items: start; }
.contact-info .small-h { margin-top: 0; }
.contact-info .phone-line { color: var(--steel); background: #fff; }
.contact-info .phone-line:hover { border-color: var(--primer); color: var(--primer); }
.contact-dl { margin: 2rem 0; }
.contact-dl div { padding-block: .8rem; border-top: 1px solid var(--rule); }
.contact-dl dt { font-size: .9rem; color: var(--muted); }
.contact-dl dd { margin: 0; font-weight: 500; }
.form-card { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow-1); }
.form-card h2 { font-size: 1.6rem; margin-bottom: 1.2rem; }
.field { display: block; margin-bottom: 1.1rem; }
.field > span { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--ink);
  padding: .75rem .9rem; background: var(--paper);
  border: 1px solid var(--zinc-2); border-bottom: 2px solid var(--steel-3); border-radius: var(--radius);
  transition: border-color .15s, background-color .15s;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--primer); background: #fff; }
.field [aria-invalid="true"] { border-bottom-color: #b3261e; }
.field-err { display: block; color: #b3261e; font-style: normal; font-size: .9rem; margin-top: .25rem; }
/* فیلد تله ربات‌ها: پنهان، بدون ایجاد اسکرول افقی */
.hp { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.form-card { position: relative; }
.notice { padding: .8rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; border-inline-start: 4px solid; }
.notice-ok { background: #e6f1ea; border-color: #2e7d4f; color: #1d4f33; }
.notice-err { background: #fbeae8; border-color: #b3261e; color: #7a1a14; }
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(.35); }

.social { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.social a { text-decoration: none; font-size: .9rem; padding: .35rem .9rem; border: 1px solid currentColor; border-radius: 100px; opacity: .8; transition: opacity .15s, color .15s; }
.social a:hover { opacity: 1; }
.site-footer .social a:hover { color: var(--weld); }

/* ---------- پاورقی ---------- */
.site-footer { position: relative; background: var(--steel-0); color: #c3ccd0; padding-top: 3.5rem; }
.site-footer::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px;
  background: repeating-linear-gradient(90deg, var(--weld) 0 14px, rgba(214,162,76,.22) 14px 22px); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.brand-light { color: var(--paper); }
.footer-tag { margin-top: .8rem; max-width: 22em; }
.footer-h { font: 700 1rem var(--body); color: var(--paper); margin-bottom: .8rem; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list a { text-decoration: none; transition: color .15s; }
.footer-list a:hover, .site-footer .phone-line:hover { color: var(--weld); }
.site-footer .phone-line { color: var(--paper); }
.footer-muted { font-size: .93rem; margin-bottom: .4rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--rule-light); padding-block: 1.2rem; font-size: .88rem; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--weld); }

.mobile-call { display: none; }

/* ---------- لایت‌باکس ---------- */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(15, 22, 27, .96); color: #fff; }
.lightbox::backdrop { background: rgba(15, 22, 27, .96); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; }
.lightbox figure { margin: 0; display: grid; place-items: center; padding: 3.5rem 4.5rem 0; min-height: 0; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 7rem); object-fit: contain; }
.lightbox figcaption { text-align: center; padding: .9rem; min-height: 3rem; color: #c3ccd0; }
.lb-btn { position: absolute; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: var(--primer); border-color: var(--primer); }
.lb-close { top: 1rem; left: 1rem; }
.lb-prev { top: 50%; right: 1rem; transform: translateY(-50%); }
.lb-next { top: 50%; left: 1rem; transform: translateY(-50%); }
.lb-count { position: absolute; top: 1.6rem; right: 1.4rem; font-size: .9rem; color: #9fb0b9; }

/* ---------- واکنش‌گرا ---------- */
@media (max-width: 1140px) {
  .line-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-lines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .site-nav { gap: 1.1rem; }
  .header-call .ltr { display: none; }
  .hero-grid, .about-grid, .product-layout, .contact-grid, .page-head-grid, .cta-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 2.5rem; }
  .hero-visual { order: -1; max-width: 560px; }
  .sheet-tag { bottom: -1rem; }
  .page-head-art { max-width: 320px; }
  .product-gallery { position: static; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.4rem; }
  .process li { padding-inline-end: 1.2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 1rem; padding-bottom: 64px; }
  .header-row { gap: 1rem; min-height: 64px; }
  .header-call { display: none; }
  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; margin-inline-start: auto; width: 44px; height: 44px; background: none; border: 1px solid var(--rule); border-radius: var(--radius); padding: 0 11px; cursor: pointer; }
  .nav-toggle i { display: block; height: 2px; background: var(--steel); transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] i:nth-of-type(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] i:nth-of-type(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] i:nth-of-type(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { display: none; position: absolute; inset-inline: 0; top: 100%; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--rule); padding: .5rem 1.25rem 1rem; }
  .site-nav.open { display: flex; }
  .site-nav a { padding-block: .8rem; border-bottom: 1px solid var(--rule); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--rule); color: var(--primer); }
  .line-list { grid-template-columns: minmax(0, 1fr); }
  .line-media { aspect-ratio: 16 / 7; }
  .process { grid-template-columns: minmax(0, 1fr); row-gap: 1.6rem; }
  .process li { padding-inline-end: 0; padding-top: 0; padding-inline-start: 3.4rem; }
  .process li::after { inset-inline: auto; inset-inline-start: 1.1rem; top: 0; bottom: 0; height: auto; width: 2px; }
  .process li::before { top: 0; }
  .about-lines { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .phone-line { min-width: 0; flex: 1 1 100%; }
  .stats { padding-inline: 1.2rem; }
  .mobile-call { display: flex; align-items: center; justify-content: center; gap: .6rem; position: fixed; inset-inline: 0; bottom: 0; z-index: 60; height: 60px; background: var(--primer); color: #fff; font-weight: 700; text-decoration: none; font-size: 1.05rem; box-shadow: 0 -6px 20px -10px rgba(19,30,37,.6); }
  .mobile-call svg { width: 20px; height: 20px; fill: #fff; }
  .hero-kicker { font-size: .88rem; margin-bottom: .8rem; }
  .hero-kicker::before { display: none; }
  .lightbox figure { padding: 4rem .5rem 0; }
  .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; }
  .hero-visual.has-photo .hero-drawing { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- انواع محصول ---------- */
.variants { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: .5rem; }
.variants li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .8rem;
  padding: .7rem .9rem; background: #fff; border: 1px solid var(--rule);
  border-inline-start: 3px solid var(--weld); border-radius: var(--radius);
}
.variants strong { font-family: var(--display); font-weight: 750; font-size: 1.05rem; }
.variants span { color: var(--muted); font-size: .95rem; }
.variants-note { color: var(--muted); font-size: .92rem; }
.product-variants { font-size: .93rem; color: var(--steel-3); margin-bottom: .9rem; }
.product-variants span { color: var(--muted); }
