/* ==========================================================================
   بهسامان صنعت — طراحی سایت
   رنگ‌ها از خود محصول گرفته شده‌اند: نارنجی عملگرهای PROVAL، بدنه چدنی
   تیره شیر و خاکستری فولاد گالوانیزه. نشانه اصلی طراحی «پلاک مشخصات»
   است؛ همان پلاکی که روی هر شیر و عملگر نصب می‌شود.
   ========================================================================== */

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Lalezar";
  src: url("../fonts/lalezar-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
  font-display: swap;
}

@font-face {
  font-family: "Lalezar";
  src: url("../fonts/lalezar-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  font-display: swap;
}

:root {
  --paper: #f2f3f1;
  --paper-2: #e7e9e6;
  --surface: #ffffff;
  --steel: #d8dcd8;
  --steel-dark: #9ba29e;
  --photo: #d3d2ce;
  --ink: #19222b;
  --ink-soft: #4b5661;
  --ink-faint: #6e7882;
  --orange: #f26b21;
  --orange-hover: #ff7c33;
  --blue: #1d5a7a;
  --on-dark: #e9edef;
  --on-dark-soft: #a9b4bc;

  --font: "Vazirmatn", Tahoma, sans-serif;
  --display: "Lalezar", "Vazirmatn", Tahoma, sans-serif;

  --wrap: 1200px;
  --gutter: 20px;
  --radius: 4px;
  --header-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.95;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 0.3em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-inline-start: 1.3em; }
strong { font-weight: 700; }
[dir="ltr"], .ltr { direction: ltr; unicode-bidi: isolate; }

h1, h2, h3, h4 { margin: 0; color: var(--ink); }

h1, .h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.3rem, 4.6vw, 4rem);
  line-height: 1.3;
}

h2, .h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.35;
}

h3, .h3 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.6;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; color: #fff; }

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

.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 48px;
  padding: 0.55em 1.4em;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--primary { background: var(--orange); color: var(--ink); }
.btn--primary:hover { background: var(--orange-hover); color: var(--ink); }

.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }


.btn--small { min-height: 40px; padding: 0.35em 1em; font-size: 0.95rem; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--orange);
  line-height: 1.6;
}
.link-more:hover { color: var(--blue); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--steel);
}
.site-header.is-scrolled { box-shadow: 0 6px 18px -12px rgba(25, 34, 43, 0.45); }

.site-header__bar {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
.brand img { width: 50px; height: auto; }
.brand__name { display: block; font-family: var(--display); font-size: 1.45rem; line-height: 1.2; }
.brand__tag { display: block; font-size: 0.78rem; line-height: 1.5; color: var(--ink-soft); }

.nav { margin-inline-start: auto; }
.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative;
  display: block;
  padding: 8px 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  position: absolute;
  inset-inline: 10px;
  bottom: -14px;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(0.4); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  direction: ltr;
}
.header-phone .icon { color: var(--orange); }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  margin-inline-start: auto;
  padding: 0;
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }

@media (max-width: 1240px) {
  .header-phone { display: none; }
}

@media (max-width: 1100px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: inline-flex; }
  .header-actions { display: none; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--surface);
    padding: 12px var(--gutter) 120px;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--steel); }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--orange); font-weight: 700; }
  .nav__extra { display: grid; gap: 12px; margin-top: 24px; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav { visibility: visible; opacity: 1; transform: none; transition: opacity 0.2s ease, transform 0.2s ease; }
  body.nav-open .nav-toggle .icon-menu { display: none; }
  body.nav-open .nav-toggle .icon-close { display: block; }
}
@media (min-width: 1101px) {
  .nav__extra { display: none; }
}

/* ---------- mobile action bar ---------- */

.action-bar { display: none; }
@media (max-width: 720px) {
  body { padding-bottom: 72px; }
  .action-bar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 1px solid var(--steel);
  }
  .action-bar .btn { min-height: 48px; padding-inline: 0.6em; }
}

/* ---------- sections ---------- */

.section { padding-block: clamp(64px, 9vw, 112px); }
.section--tight { padding-block: clamp(48px, 6vw, 72px); }
.section--white { background: var(--surface); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.section-head__text { max-width: 640px; }
.section-head__text p { margin: 12px 0 0; color: var(--ink-soft); }
.section--dark .section-head__text p { color: var(--on-dark-soft); }

.lead { font-size: 1.15rem; line-height: 2; color: var(--ink-soft); max-width: 62ch; }

/* ---------- nameplate (the signature element) ---------- */

.plate {
  --rivet: radial-gradient(circle at center, #f7f8f7 0 2px, #7d8580 2.5px 4px, transparent 4.5px);
  position: relative;
  padding: 26px 30px 22px;
  color: var(--ink);
  background:
    var(--rivet) top 10px right 10px / 12px 12px no-repeat,
    var(--rivet) top 10px left 10px / 12px 12px no-repeat,
    var(--rivet) bottom 10px right 10px / 12px 12px no-repeat,
    var(--rivet) bottom 10px left 10px / 12px 12px no-repeat,
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.45) 0 1px, rgba(0, 0, 0, 0.018) 1px 3px),
    linear-gradient(160deg, #eef0ee 0%, #dfe3e0 55%, #e9ece9 100%);
  border: 1px solid var(--steel-dark);
  border-radius: 6px;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.55), inset 0 0 0 6px rgba(125, 133, 128, 0.35), 0 18px 40px -24px rgba(25, 34, 43, 0.55);
}

.plate__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 4px 12px;
  border-bottom: 2px solid var(--ink);
}
.plate__title { font-family: var(--display); font-size: 1.35rem; line-height: 1.3; }
.plate__badge {
  padding: 2px 10px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: var(--orange);
  color: var(--ink);
  border-radius: 2px;
  direction: ltr;
}

.plate__rows { margin: 0; padding: 4px 4px 0; }
.plate__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(25, 34, 43, 0.28);
}
.plate__row:last-child { border-bottom: 0; }
.plate__row dt { color: var(--ink-soft); font-size: 0.95rem; }
.plate__row dd { margin: 0; font-weight: 800; font-size: 1.05rem; text-align: left; }

.plate__foot {
  margin: 10px 4px 0;
  padding-top: 10px;
  border-top: 2px solid var(--ink);
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ---------- home hero ---------- */

.hero { position: relative; background: var(--paper); overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  min-height: min(calc(100vh - var(--header-h)), 760px);
}
.hero__text {
  align-self: center;
  padding-block: 64px 72px;
  padding-inline-end: 72px;
}
.hero__text h1 { max-width: 13ch; font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1.25; }
.hero__sub { margin: 10px 0 0; font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 700; line-height: 1.6; color: var(--ink); }
.hero__text .lead { margin: 18px 0 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__call { margin-top: 22px; font-size: 0.95rem; color: var(--ink-soft); }
.hero__call a { font-weight: 700; color: var(--ink); text-decoration: none; }

.hero__visual {
  position: relative;
  background: var(--photo);
  margin-inline-end: calc((100vw - min(100vw, var(--wrap) + var(--gutter) * 2)) / -2 - var(--gutter));
}
.hero__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 28% 40%;
}
.hero__plate {
  position: absolute;
  bottom: 48px;
  inset-inline-start: -36px;
  width: min(330px, 72%);
}

@media (prefers-reduced-motion: no-preference) {
  .hero__visual img { animation: photo-in 0.9s ease-out both; }
  .hero__plate { animation: plate-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.45s both; }
}
@keyframes photo-in { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
@keyframes plate-in { from { opacity: 0; transform: translateY(24px) rotate(-1.5deg); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__text { padding: 44px 0 36px; }
  .hero__visual { margin-inline: calc(var(--gutter) * -1); padding-bottom: 32px; background: linear-gradient(var(--photo) 0 300px, var(--paper) 300px); }
  .hero__visual img { position: relative; height: 380px; object-position: 14% 0; }
  .hero__plate { position: relative; inset: auto; width: auto; max-width: 420px; margin: -84px var(--gutter) 0; }
}

.industries { background: var(--ink); color: var(--on-dark); }
.industries__inner { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; padding-block: 20px; }
.industries__label { font-weight: 700; color: var(--orange); white-space: nowrap; }
.industries__list { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; font-size: 0.95rem; }
.industries__list li { padding-inline: 14px; border-inline-start: 1px solid rgba(233, 237, 239, 0.25); line-height: 1.6; }
.industries__list li:first-child { padding-inline-start: 0; border: 0; }

/* ---------- product tiles ---------- */

.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--steel);
  border: 1px solid var(--steel);
}
.product {
  display: flex;
  flex-direction: column;
  background: var(--surface);
}
.product__media { aspect-ratio: 16 / 10; background: #fff; border-bottom: 1px solid var(--steel); overflow: hidden; }
.product__media img { width: 100%; height: 100%; object-fit: contain; }
.product__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.product__latin { font-size: 0.85rem; color: var(--ink-faint); direction: ltr; text-align: right; }
.product__body p { margin: 10px 0 18px; color: var(--ink-soft); font-size: 0.98rem; line-height: 1.9; }
.product__body .link-more { margin-top: auto; align-self: flex-start; }

@media (max-width: 960px) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .products { grid-template-columns: 1fr; } }

/* ---------- beyond proval ---------- */

.supply { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: start; }
.depts { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.dept { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--steel-dark); }
.dept h3 { font-size: 1.1rem; }
.dept p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; line-height: 1.9; }

.measure { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.measure figure { margin: 0; }
.measure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); background: var(--steel); }
.measure figcaption { margin-top: 8px; font-size: 0.92rem; font-weight: 700; line-height: 1.6; }
.measure figcaption span { display: block; font-weight: 400; color: var(--ink-faint); font-size: 0.8rem; direction: ltr; text-align: right; }

@media (max-width: 960px) {
  .supply { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 520px) {
  .dept { grid-template-columns: 1fr; gap: 4px; }
  .measure { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- guarantees ---------- */

.guarantees { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; list-style: none; margin: 0; padding: 0; }
.guarantee { padding: 8px 28px; border-inline-start: 1px solid rgba(233, 237, 239, 0.18); }
.guarantee:first-child { border-inline-start: 0; padding-inline-start: 0; }
.guarantee .icon { width: 40px; height: 40px; color: var(--orange); stroke-width: 1.5; margin-bottom: 14px; }
.guarantee h3 { font-size: 1.1rem; color: #fff; }
.guarantee span { display: block; font-size: 0.85rem; color: var(--on-dark-soft); direction: ltr; text-align: right; }

@media (max-width: 860px) {
  .guarantees { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 0; }
  .guarantee:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
}

/* ---------- logos ---------- */

.logo-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--steel);
  border: 1px solid var(--steel);
}
.logo-grid li { display: flex; align-items: center; justify-content: center; padding: 18px 10px; background: #fff; }
.logo-grid img { width: 120px; max-width: 100%; height: auto; }
@media (max-width: 1000px) { .logo-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 620px) { .logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .logo-grid li { padding: 12px 6px; } }

.clients { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; margin: 0; padding: 0; }
.clients li { background: #fff; border: 1px solid var(--steel); border-radius: var(--radius); padding: 8px; }
.clients img { width: 84px; height: 84px; object-fit: contain; }

/* ---------- posts ---------- */

.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.post-card { display: flex; flex-direction: column; }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--photo); border-radius: var(--radius); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.post-card__media:hover img { transform: scale(1.03); }
.post-card time { display: block; margin-top: 16px; font-size: 0.88rem; color: var(--ink-faint); }
.post-card h3 { margin-top: 4px; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--blue); text-decoration: underline; }
.post-card p { margin: 8px 0 0; color: var(--ink-soft); font-size: 0.97rem; line-height: 1.9; }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr; gap: 40px; } .post-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 0 20px; } .post-card__media { grid-row: span 3; } .post-card time { margin-top: 0; } }
@media (max-width: 560px) { .post-card { grid-template-columns: 1fr; } .post-card__media { grid-row: auto; } .post-card time { margin-top: 14px; } }

/* ---------- call to action band ---------- */

.cta { background: var(--orange); color: var(--ink); }
.cta__inner { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 24px 48px; align-items: center; padding-block: clamp(48px, 6vw, 72px); }
.cta h2 { color: var(--ink); }
.cta p { margin: 10px 0 0; max-width: 60ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn--dark { background: var(--ink); color: #fff; }
.cta .btn--dark:hover { background: #2a3642; color: #fff; }
.cta .btn--ghost:hover { background: var(--ink); color: var(--orange); }
@media (max-width: 860px) { .cta__inner { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */

.site-footer { background: var(--ink); color: var(--on-dark-soft); font-size: 0.95rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr 1.1fr; gap: 40px; padding-block: 64px 48px; }
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer__brand img { width: 52px; background: #fff; border-radius: 50%; padding: 4px; }
.footer__brand strong { font-family: var(--display); font-weight: 400; font-size: 1.5rem; color: #fff; line-height: 1.2; }
.footer__title { margin-bottom: 14px; font-size: 1rem; font-weight: 700; color: #fff; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact .icon { margin-top: 0.45em; color: var(--orange); }
.footer__phones { direction: ltr; text-align: right; }
.footer__bar { border-top: 1px solid rgba(233, 237, 239, 0.14); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px; font-size: 0.85rem; }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; } }

/* ---------- inner page head ---------- */

.page-head { background: var(--surface); border-bottom: 1px solid var(--steel); }
.page-head__inner { padding-block: clamp(36px, 5vw, 64px) clamp(36px, 5vw, 56px); }
.page-head h1 { font-size: clamp(2rem, 4vw, 3.2rem); max-width: 22ch; }
.page-head .lead { margin: 14px 0 0; }

.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 14px; padding: 0; font-size: 0.88rem; color: var(--ink-faint); }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; color: var(--steel-dark); }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }

.page-head--split .page-head__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr); gap: 32px 56px; align-items: center; }
@media (max-width: 860px) { .page-head--split .page-head__inner { grid-template-columns: 1fr; } }

/* ---------- prose ---------- */

.prose { max-width: 70ch; }
.prose h2 { font-family: var(--font); font-weight: 800; font-size: 1.4rem; line-height: 1.6; margin: 1.8em 0 0.5em; }
.prose h3 { margin: 1.5em 0 0.4em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--orange); font-weight: 700; }
.prose > :first-child { margin-top: 0; }

/* ---------- two-column layouts ---------- */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.split--wide { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
@media (max-width: 900px) { .split, .split--wide { grid-template-columns: 1fr; gap: 40px; } }

.photo { border-radius: var(--radius); background: var(--photo); }
.photo--cover { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- proval page ---------- */

.reasons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; list-style: none; margin: 0; padding: 0; }
.reason { padding-top: 18px; border-top: 3px solid var(--ink); }
.reason h3 { font-size: 1.1rem; }
.reason p { margin: 8px 0 0; color: var(--ink-soft); font-size: 0.98rem; line-height: 1.9; }
@media (max-width: 960px) { .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .reasons { grid-template-columns: 1fr; } }

.catalog-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.catalog-card { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--steel); border-radius: var(--radius); overflow: hidden; }
.catalog-card__media { display: flex; align-items: center; justify-content: center; height: 260px; padding: 20px; background: #fff; border-bottom: 1px solid var(--steel); }
.catalog-card__media img { max-height: 100%; width: auto; }
.catalog-card__body { display: flex; flex-direction: column; padding: 20px 22px 22px; }
.catalog-card__model { font-weight: 800; color: var(--orange); direction: ltr; text-align: right; font-size: 0.95rem; }
.catalog-card__body p { margin: 8px 0 18px; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.85; }
.catalog-card__body .link-more { margin-top: auto; align-self: flex-start; }
@media (max-width: 960px) { .catalog-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .catalog-list { grid-template-columns: 1fr; } }

.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--steel-dark); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--ink-soft); max-width: 70ch; }

/* ---------- gallery ---------- */

.masonry { columns: 3 300px; column-gap: 16px; }
.masonry__item { break-inside: avoid; margin: 0 0 16px; }
.masonry__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  background: #fff;
  cursor: zoom-in;
  overflow: hidden;
  text-align: inherit;
  font: inherit;
  color: inherit;
}
.masonry__btn img { width: 100%; height: auto; }
.masonry__btn figcaption { padding: 10px 14px 12px; font-size: 0.92rem; line-height: 1.7; color: var(--ink-soft); border-top: 1px solid var(--steel); }
.masonry__btn:hover figcaption { color: var(--ink); }

.lightbox {
  width: min(1100px, 100vw);
  max-width: 100vw;
  max-height: 100vh;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}
.lightbox::backdrop { background: rgba(14, 19, 24, 0.92); }
.lightbox__figure { margin: 0; display: grid; gap: 12px; padding: 56px 16px 16px; }
.lightbox__figure img { max-height: calc(100vh - 160px); width: auto; margin-inline: auto; background: #fff; border-radius: var(--radius); }
.lightbox__figure figcaption { text-align: center; color: var(--on-dark); }
.lightbox__btn {
  position: fixed;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(25, 34, 43, 0.7);
  color: #fff;
  cursor: pointer;
}
.lightbox__btn .icon { width: 22px; height: 22px; }
.lightbox__close { top: 14px; inset-inline-end: 14px; }
.lightbox__prev { top: 50%; inset-inline-start: 14px; }
.lightbox__next { top: 50%; inset-inline-end: 14px; }

/* ---------- catalog detail ---------- */

.spec-table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.spec-table th, .spec-table td { padding: 12px 0; border-bottom: 1px solid var(--steel-dark); text-align: start; vertical-align: top; line-height: 1.7; }
.spec-table th { width: 40%; font-weight: 500; color: var(--ink-soft); padding-inline-end: 16px; }
.spec-table td { font-weight: 700; text-align: right; }
.spec-table tr:first-child th, .spec-table tr:first-child td { border-top: 2px solid var(--ink); }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-inline-start: 30px; line-height: 1.85; }
.check-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.45em;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%23f26b21' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.pdf-frame { width: 100%; height: 80vh; min-height: 520px; border: 1px solid var(--steel); border-radius: var(--radius); background: #fff; }
.catalog-hero-img { max-height: 460px; width: auto; margin-inline: auto; }
.pdf-note { font-size: 0.9rem; color: var(--ink-faint); margin-top: 10px; }
@media (max-width: 720px) { .pdf-frame { display: none; } .pdf-note { margin-top: 0; font-size: 1rem; } }

/* ---------- services ---------- */

.service-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.service { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 16px 56px; padding: 32px 0; border-bottom: 1px solid var(--steel-dark); }
.service h2 { font-family: var(--font); font-weight: 800; font-size: 1.35rem; line-height: 1.6; }
.service p { color: var(--ink-soft); margin: 10px 0 0; }
.service ul { margin: 0; }
@media (max-width: 800px) { .service { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { position: relative; padding: 0 0 0 24px; counter-increment: step; }
.step::before {
  content: counter(step, persian);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  font-family: var(--display);
  font-size: 1.3rem;
  border: 2px solid var(--orange);
  border-radius: 50%;
  color: var(--orange);
  background: var(--ink);
  position: relative;
  z-index: 1;
}
.step::after { content: ""; position: absolute; top: 22px; inset-inline-start: 44px; inset-inline-end: 0; height: 2px; background: rgba(242, 107, 33, 0.35); }
.step:last-child::after { display: none; }
.step h3 { color: #fff; font-size: 1.1rem; }
.step p { margin: 6px 0 0; color: var(--on-dark-soft); font-size: 0.95rem; line-height: 1.85; padding-inline-end: 16px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 0; }
  .step:nth-child(2)::after { display: none; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .step::after { display: none; } }

/* ---------- warranty ---------- */

.coverage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.coverage__col { background: var(--surface); border: 1px solid var(--steel); border-top: 4px solid var(--ink); border-radius: var(--radius); padding: 24px; }
.coverage__col--yes { border-top-color: var(--orange); }
.coverage__col--no { border-top-color: var(--steel-dark); }
.coverage__col h2 { font-family: var(--font); font-weight: 800; font-size: 1.2rem; line-height: 1.6; margin-bottom: 14px; }
.coverage__col ul { margin: 0; padding-inline-start: 1.2em; color: var(--ink-soft); }
.coverage__col li { margin-bottom: 8px; line-height: 1.85; }
@media (max-width: 900px) { .coverage { grid-template-columns: 1fr; } }

/* ---------- about ---------- */

.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; border-top: 2px solid var(--ink); }
.values li { padding: 16px 0; border-bottom: 1px solid var(--steel-dark); font-weight: 700; line-height: 1.8; }
@media (max-width: 640px) { .values { grid-template-columns: 1fr; } }

/* ---------- blog ---------- */

.post-list { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.post-row { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--steel-dark); }
.post-row__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); background: var(--photo); }
.post-row__media img { width: 100%; height: 100%; object-fit: cover; }
.post-row time { font-size: 0.88rem; color: var(--ink-faint); }
.post-row h2 { font-family: var(--font); font-weight: 800; font-size: 1.35rem; line-height: 1.6; margin: 2px 0 8px; }
.post-row h2 a { color: var(--ink); text-decoration: none; }
.post-row h2 a:hover { color: var(--blue); text-decoration: underline; }
.post-row p { color: var(--ink-soft); margin-bottom: 14px; }
@media (max-width: 720px) { .post-row { grid-template-columns: 1fr; gap: 16px; } }

.article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; }
.article__cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); margin-bottom: 36px; background: var(--photo); }
.article__aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 24px; }
.aside-box { background: var(--surface); border: 1px solid var(--steel); border-radius: var(--radius); padding: 22px; }
.aside-box h2 { font-family: var(--font); font-weight: 800; font-size: 1.05rem; line-height: 1.6; margin-bottom: 10px; }
.aside-box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.aside-box a { color: var(--ink); text-decoration: none; font-size: 0.95rem; line-height: 1.7; }
.aside-box a:hover { color: var(--blue); text-decoration: underline; }
.aside-box p { font-size: 0.95rem; color: var(--ink-soft); }
@media (max-width: 960px) { .article { grid-template-columns: 1fr; gap: 48px; } .article__aside { position: static; } }

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr); gap: 56px; align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form__full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 0.95rem; }
.field .optional { font-weight: 400; color: var(--ink-faint); font-size: 0.85rem; }
.field input,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--steel-dark);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.9; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(242, 107, 33, 0.35); }
.field input[dir="ltr"] { text-align: right; }
.field .input-validation-error { border-color: #b42318; }
.field-error { display: block; margin-top: 6px; color: #b42318; font-size: 0.9rem; }
.field-error:empty { display: none; }
.form-hint { font-size: 0.9rem; color: var(--ink-faint); margin: 0; }
.hp-field { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

.alert { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); margin-bottom: 28px; line-height: 1.8; }
.alert .icon { width: 26px; height: 26px; margin-top: 2px; }
.alert--ok { background: #e6f2ea; border: 1px solid #9bc9a9; color: #14532d; }
.alert--error { background: #fdecea; border: 1px solid #f1aeb5; color: #7a1c1c; }
.alert strong { display: block; }
.validation-summary-valid { display: none; }
.validation-summary-errors ul { margin: 0; padding-inline-start: 1.2em; }


/* ---------- error pages ---------- */

.error-page { min-height: 60vh; display: grid; align-items: center; }
.error-page .code { font-family: var(--display); font-size: clamp(5rem, 14vw, 9rem); line-height: 1; color: var(--orange); }

/* ---------- print & motion ---------- */

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

@media print {
  .site-header, .site-footer, .action-bar, .cta, .nav-toggle { display: none !important; }
  body { background: #fff; padding: 0; }
}

/* ---------- small helpers ---------- */

.block-title { margin-bottom: 24px; }
.block-title--spaced { margin-top: 48px; }
.page-head__actions { margin-top: 28px; }
.plate a { color: inherit; text-decoration: none; }
.plate a:hover { color: var(--blue); }
.catalog-card h3 a { color: inherit; text-decoration: none; }
.catalog-card h3 a:hover { color: var(--blue); }
.reasons--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .reasons--3 { grid-template-columns: 1fr; } }
.catalog-figure { background: #fff; border: 1px solid var(--steel); border-radius: var(--radius); padding: 24px; }
h2 + .lead { margin-top: 14px; }
.lead + .btn { margin-top: 8px; }
