/* ریتا ایلیا کیش — سبک شرکتی آرام: سفید، تیترهای سبک، یک رنگ تأکید (قرمز لوگو) */
:root {
  --text: #1d1d1d; --text-2: #4a4a4a; --muted: #6b6b6b; --line: #e1e1e1; --line-2: #cfcfcf;
  --bg: #ffffff; --bg-2: #f5f5f5; --bg-3: #ebebeb;
  --brand: #b5121b; --brand-h: #8e0e15; --accent: #f39200; --dark: #2b2b2b;
  --radius: 4px; --shadow: 0 2px 10px rgba(0,0,0,.08);
  --navy: var(--text); --navy-2: var(--text-2); --teal: var(--brand); --teal-l: var(--accent); --amber: var(--accent);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Vazirmatn, Roboto, Tahoma, sans-serif; background: var(--bg); color: var(--text); line-height: 1.9; font-size: 15.5px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-weight: 300; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.mono { font-family: Roboto, sans-serif; }

/* header */
.topbar { background: var(--bg-2); color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; justify-content: space-between; padding-block: 6px; gap: 12px; }
.tb-links a { margin-inline-start: 22px; }
.tb-links a:hover { color: var(--brand); }
.header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--line), 0 4px 14px rgba(0,0,0,.04); }
.header-in { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo img { height: 46px; width: auto; }
.nav { display: flex; gap: 4px; order: 3; }
.nav a { padding: 8px 12px; font-size: 15px; position: relative; }
.nav a:hover, .nav a.on { color: var(--brand); }
.nav a.on::after { content: ""; position: absolute; inset-inline: 12px; bottom: -2px; height: 2px; background: var(--brand); }
.hsearch { flex: 1; max-width: 520px; order: 2; position: relative; }
.hsearch input { width: 100%; border: 1px solid var(--line-2); background: #fff; border-radius: var(--radius); padding: 9px 42px 9px 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
.hsearch::before { content: ""; position: absolute; right: 14px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); background: no-repeat center/16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); }
.hsearch input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(181,18,27,.12); }
.rfq-btn { order: 4; margin-inline-start: auto; display: flex; align-items: center; gap: 8px; padding: 8px 4px; white-space: nowrap; font-size: 14.5px; }
.rfq-btn:hover { color: var(--brand); }
.badge { background: var(--brand); color: #fff; min-width: 20px; height: 20px; line-height: 20px; text-align: center; font-size: 11.5px; padding: 0 5px; border-radius: 10px; }
.menu-btn { display: none; background: none; border: 0; font-size: 24px; order: 5; padding: 4px 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--brand); cursor: pointer; padding: 8px 18px; border-radius: var(--radius); font-weight: 500; font-size: 15px; background: var(--brand); color: #fff; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--brand-h); border-color: var(--brand-h); }
.btn.teal { background: var(--brand); border-color: var(--brand); }
.btn.amber { background: #fff; border-color: #fff; color: var(--brand); }
.btn.amber:hover { background: var(--bg-2); border-color: var(--bg-2); }
.btn.ghost { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn.ghost:hover { background: var(--brand); color: #fff; }
.btn.sm { padding: 5px 12px; font-size: 13.5px; }
.btn.block { width: 100%; }
.btn.added { background: #fff; color: var(--text-2); border-color: var(--line-2); }
.link { color: var(--brand); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.link::after { content: "‹"; font-size: 20px; line-height: 1; transition: transform .15s; }
.link:hover::after { transform: translateX(-4px); }

/* home hero carousel */
.hero-c { position: relative; background: var(--bg-2); overflow: hidden; }
.slides { position: relative; height: 480px; }
.slide { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.slide.on { opacity: 1; visibility: visible; }
.slide-bg { position: absolute; inset: 0; z-index: 0; }
.slide-text { position: relative; z-index: 1; padding-inline-start: max(32px, calc((100vw - 1320px) / 2 + 32px)); padding-inline-end: 24px; }
.slide-text .kick { color: var(--brand); font-size: 14px; font-weight: 500; }
.slide-text h1, .slide-text h2 { font-size: 36px; line-height: 1.45; margin: 6px 0 12px; font-weight: 300; }
.slide-text p { font-size: 17px; color: var(--text-2); margin: 0 0 22px; max-width: 520px; }
.slide-img { position: relative; z-index: 1; height: 100%; display: flex; align-items: center; justify-content: center; padding: 30px 40px; }
.slide-img img { max-height: 400px; max-width: 100%; object-fit: contain; filter: drop-shadow(0 24px 30px rgba(0,0,0,.18)); transform: translateY(10px); transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.slide.on .slide-img img { transform: none; }
.slide-img.multi { gap: 10px; }
.slide-img.multi img { max-height: 300px; max-width: 32%; }
.c-dots { position: absolute; bottom: 22px; right: max(32px, calc((100vw - 1320px) / 2 + 32px)); display: flex; gap: 8px; z-index: 3; }
.c-dots button { width: 28px; height: 4px; border: 0; background: rgba(0,0,0,.18); cursor: pointer; padding: 0; border-radius: 2px; }
.c-dots button.on { background: var(--brand); }
.c-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); box-shadow: var(--shadow); cursor: pointer; font-size: 22px; display: grid; place-items: center; }
.c-arrow:hover { color: var(--brand); }
.c-arrow.prev { right: 16px; } .c-arrow.next { left: 16px; }

/* quick links under hero */
.qbar { background: #fff; border-bottom: 1px solid var(--line); }
.qbar .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.qbar a { display: flex; align-items: center; gap: 14px; padding: 20px 18px; border-inline-start: 1px solid var(--line); transition: background .15s; }
.qbar a:last-child { border-inline-end: 1px solid var(--line); }
.qbar a:hover { background: var(--bg-2); }
.qbar svg { color: var(--brand); flex: none; }
.qbar b { display: block; font-weight: 500; font-size: 15px; }
.qbar small { color: var(--muted); font-size: 13px; }

/* sections */
section.sec { padding: 64px 0; }
section.sec.gray, .sec.white { background: var(--bg-2); }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 26px; gap: 16px; }
.sec-head h2 { margin: 0; font-size: 28px; font-weight: 300; line-height: 1.4; }
.sec-head p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.sec-no { display: none; }

/* browse by category */
.cat-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.cat-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.cat-tile .ph { width: 100%; aspect-ratio: 1; background: var(--bg-2); border-radius: var(--radius); display: grid; place-items: center; padding: 18px; transition: background .2s; }
.cat-tile .ph img { max-height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s; }
.cat-tile span { color: var(--brand); font-weight: 500; font-size: 14.5px; line-height: 1.6; }
.cat-tile:hover .ph { background: var(--bg-3); }
.cat-tile:hover .ph img { transform: scale(1.05); }
.cat-tile:hover span { text-decoration: underline; text-underline-offset: 4px; }

/* industry cards */
.ind-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.ind-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.ind-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.12); transform: translateY(-2px); }
.ind-card .ph { height: 170px; background: linear-gradient(180deg, #fafafa, #ececec); display: flex; align-items: flex-end; justify-content: center; gap: 4px; padding: 18px 14px 0; overflow: hidden; }
.ind-card .ph img { max-height: 135px; max-width: 48%; object-fit: contain; mix-blend-mode: multiply; }
.ind-card .tx { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.ind-card h3 { margin: 0 0 6px; font-size: 21px; }
.ind-card p { margin: 0 0 12px; color: var(--text-2); font-size: 14px; line-height: 1.85; flex: 1; }

.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.ind { background: #fff; border-radius: var(--radius); box-shadow: 0 1px 3px rgba(0,0,0,.08); padding: 22px; display: flex; gap: 14px; transition: box-shadow .2s; }
.ind:hover { box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.ind .ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; color: var(--brand); background: #fbeaea; border-radius: 50%; }
.ind b { display: block; font-size: 18px; font-weight: 500; }
.ind small { color: var(--muted); font-size: 13.5px; line-height: 1.8; display: block; }

/* techniques */
.tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 32px; }
.tech { padding: 12px 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.tech:hover { color: var(--brand); }
.tech small { color: var(--muted); direction: ltr; display: block; font-size: 12px; text-align: right; }
.tech .cnt { color: var(--muted); font-size: 13px; }

/* services */
.svc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 36px; }
.svc-item { display: flex; gap: 16px; }
.svc-item svg { color: var(--brand); flex: none; margin-top: 4px; }
.svc-item b { display: block; font-size: 17px; font-weight: 500; margin-bottom: 2px; }
.svc-item p { margin: 0; color: var(--text-2); font-size: 14.5px; }

/* banner */
.cta { background: var(--dark); color: #fff; border-radius: var(--radius); display: grid; grid-template-columns: 1.2fr 1fr; overflow: hidden; }
.cta > div { padding: 44px; }
.cta h3 { margin: 0 0 8px; font-size: 28px; font-weight: 300; }
.cta p { margin: 0 0 20px; color: #cfcfcf; }
.cta .ph { background: linear-gradient(135deg, #3a3a3a, #232323); display: flex; align-items: center; justify-content: center; padding: 26px; }
.cta .ph img { max-height: 230px; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0,0,0,.4)); }

/* brands & chips */
.brand-wall { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.brand-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s; }
.brand-card:hover { box-shadow: var(--shadow); border-color: transparent; }
.brand-card .bn { font-family: Roboto, sans-serif; font-size: 20px; font-weight: 500; direction: ltr; text-align: right; }
.brand-card p { color: var(--muted); font-size: 13px; margin: 6px 0 12px; flex: 1; line-height: 1.8; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--bg-2); padding: 2px 12px; font-size: 12.5px; color: var(--text-2); border-radius: 14px; }
a.chip:hover { background: var(--bg-3); color: var(--brand); }
.chip.on { background: var(--brand); color: #fff; }
.tag { display: inline-block; background: var(--bg-2); color: var(--text-2); padding: 1px 10px; font-size: 13px; margin: 2px; border-radius: 14px; }
a.tag:hover { color: var(--brand); }

.cust { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cust span { background: #fff; padding: 16px 14px; font-size: 14px; text-align: center; color: var(--text-2); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: #fff; padding: 20px; border-radius: var(--radius); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.step b { display: block; font-weight: 500; }
.step p { color: var(--muted); margin: 4px 0 0; font-size: 14px; }

/* inner pages */
.hero { background: var(--bg-2); padding: 46px 0; border-bottom: 1px solid var(--line); }
.hero h1 { font-size: 36px; font-weight: 300; margin: 6px 0; line-height: 1.4; }
.hero p { color: var(--text-2); font-size: 16.5px; max-width: 720px; margin: 0; }
.hero .crumbs, .hero .crumbs a { color: var(--muted) !important; }
.page-head { background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 30px 0 26px; }
.page-head h1 { margin: 0; font-size: 34px; font-weight: 300; line-height: 1.4; }
.page-head p { margin: 4px 0 0; color: var(--text-2); }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.crumbs a { color: var(--brand); }

.layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 36px; padding: 32px 0 72px; }
.filters { align-self: start; position: sticky; top: 96px; max-height: calc(100vh - 116px); overflow: auto; padding-inline-end: 6px; }
.filters h4 { margin: 20px 0 6px; font-size: 15px; font-weight: 500; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.filters h4:first-of-type { margin-top: 0; }
.filters label { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 3px 0; cursor: pointer; color: var(--text-2); }
.filters label:hover { color: var(--brand); }
.filters label span.c { margin-inline-start: auto; color: var(--muted); font-size: 12px; }
.filters input[type=checkbox] { accent-color: var(--brand); width: 15px; height: 15px; }
.filters #fq { width: 100%; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--radius); }
.f-toggle { display: none; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.toolbar > span { color: var(--muted); font-size: 14px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s; overflow: hidden; }
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); border-color: transparent; }
.card .thumb { aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; padding: 20px; background: #fff; overflow: hidden; }
.card .thumb img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform .35s; }
.card:hover .thumb img { transform: scale(1.04); }
.card .body { padding: 14px 18px 18px; flex: 1; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.card .brand { font-size: 12.5px; color: var(--muted); direction: ltr; text-align: right; font-family: Roboto, sans-serif; }
.card .brand span { color: var(--muted) !important; }
.card h3 { margin: 2px 0 6px; font-size: 18px; direction: ltr; text-align: right; font-family: Roboto, sans-serif; font-weight: 400; }
.card h3 a:hover { color: var(--brand); }
.card p { margin: 0 0 14px; color: var(--text-2); font-size: 13.5px; line-height: 1.85; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .acts { display: flex; gap: 8px; }
.card .acts .btn { flex: 1; padding-inline: 8px; }
.noimg { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); font-size: 13px; text-align: center; background: var(--bg-2); border-radius: var(--radius); }
.empty { background: var(--bg-2); padding: 44px; text-align: center; color: var(--muted); border-radius: var(--radius); }

/* product page */
.pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding: 36px 0; }
.pd-img { aspect-ratio: 1; display: grid; place-items: center; padding: 40px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.pd-img img { max-height: 100%; object-fit: contain; }
.pd h1 { margin: 6px 0 10px; font-size: 36px; direction: ltr; text-align: right; font-family: Roboto, sans-serif; font-weight: 300; line-height: 1.25; }
.pd .lead { font-size: 17px; color: var(--text-2); }
.pd-box { background: var(--bg-2); border-radius: var(--radius); padding: 20px; margin-top: 22px; }
.qty { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.qty input { width: 80px; padding: 6px 10px; border: 1px solid var(--line-2); text-align: center; border-radius: var(--radius); background: #fff; }
.specs { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.specs td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.specs tr:nth-child(odd) td { background: var(--bg-2); }
.specs td:first-child { color: var(--text-2); width: 38%; font-weight: 500; }
.specs td:last-child { direction: ltr; text-align: right; font-family: Roboto, sans-serif; }
.tabs-sec { padding: 8px 0 56px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }

/* panels & forms */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel h2 { margin: 0 0 14px; font-size: 22px; font-weight: 300; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: 13.5px; color: var(--text-2); margin-bottom: 4px; }
.field input, .field select, .field textarea { width: 100%; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(181,18,27,.1); }
.field textarea { min-height: 90px; resize: vertical; }
.field.full { grid-column: 1 / -1; }
.req::after { content: " *"; color: var(--brand); }
.rfq-layout { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 32px; padding: 32px 0 72px; }
.rfq-item { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 10px; }
.rfq-item img, .rfq-item .noimg { width: 72px; height: 58px; object-fit: contain; }
.rfq-item .meta { flex: 1; }
.rfq-item b { direction: ltr; display: block; text-align: right; font-weight: 500; font-family: Roboto, sans-serif; }
.rfq-item input { width: 64px; padding: 5px; border: 1px solid var(--line-2); border-radius: var(--radius); text-align: center; }
.x { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 22px; }
.x:hover { color: var(--brand); }
.success { text-align: center; padding: 60px 20px; }
.success .code { font-size: 26px; letter-spacing: 2px; color: var(--brand); direction: ltr; display: inline-block; padding: 6px 22px; background: #fbeaea; border-radius: var(--radius); margin: 10px 0; font-family: Roboto, sans-serif; }

/* catalogs */
.cat-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.cat-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; gap: 14px; align-items: center; transition: box-shadow .2s; }
.cat-item:hover { box-shadow: var(--shadow); }
.cat-item .pdf { width: 40px; height: 50px; flex: none; background: #fbeaea; color: var(--brand); border-radius: 3px; display: grid; place-items: center; font-weight: 700; font-size: 11px; font-family: Roboto, sans-serif; }
.cat-item .meta { flex: 1; }
.cat-item b { display: block; font-weight: 500; font-size: 14.5px; line-height: 1.6; }
.cat-item small { color: var(--muted); }
.builder { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.pick-list { max-height: 360px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; }
.pick-list label { display: flex; gap: 8px; font-size: 14px; padding: 3px 0; }
.pick-list .gh { font-weight: 500; margin-top: 10px; font-size: 13px; color: var(--brand); }

/* admin */
.tbl { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
.tbl th, .tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
.tbl th { background: var(--bg-2); font-weight: 500; }
.st { padding: 2px 10px; border-radius: 12px; font-size: 12px; background: #fff4e0; color: #9a5b00; white-space: nowrap; }

/* footer */
.footer { background: var(--dark); color: #b8b8b8; padding: 52px 0 0; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 36px; }
.footer a, .footer span { display: block; padding: 3px 0; }
.footer a:hover { color: #fff; }
.f-title { color: #fff; display: block; margin-bottom: 10px; font-weight: 500; font-size: 15px; }
.f-logo { height: 80px; width: auto; margin-bottom: 10px; }
.copy { border-top: 1px solid #3d3d3d; margin-top: 40px; padding: 16px 32px; font-size: 12.5px; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(140px); background: var(--dark); color: #fff; padding: 12px 22px; border-radius: var(--radius); transition: .3s; z-index: 100; box-shadow: var(--shadow); }
.toast.show { transform: translateX(-50%); }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: grid; place-items: center; z-index: 90; padding: 16px; }
.modal[hidden] { display: none; }
.modal-box { background: #fff; border-radius: 6px; padding: 28px; width: min(540px, 100%); max-height: 90vh; overflow: auto; }
.modal-box h3 { margin: 0 0 4px; font-size: 21px; }

/* printable catalog */
.print-bar { background: #fff8eb; border-bottom: 1px solid #f3dfb8; padding: 10px 0; position: sticky; top: 76px; z-index: 5; }
.print-bar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pc { max-width: 900px; margin: 28px auto; }
.pc-page { background: #fff; padding: 46px 52px; margin-bottom: 20px; box-shadow: var(--shadow); min-height: 600px; }
.pc-cover { background: #2d2d2d; color: #fff; display: flex; flex-direction: column; justify-content: space-between; min-height: 1000px; }
.pc-cover h1 { font-size: 42px; margin: 0; line-height: 1.4; font-weight: 300; }
.pc-cover .sub { color: var(--accent); font-size: 17px; }
.pc-prod { display: grid; grid-template-columns: 220px 1fr; gap: 26px; padding: 22px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.pc-prod:last-child { border-bottom: 0; }
.pc-prod .im { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; height: 180px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.pc-prod .im img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.pc-prod h3 { margin: 0; direction: ltr; text-align: right; font-size: 20px; font-weight: 400; font-family: Roboto, sans-serif; }
.pc-sec-title { font-size: 24px; font-weight: 300; border-bottom: 2px solid var(--brand); padding-bottom: 6px; margin: 0 0 8px; }
.pc ol { list-style: persian; }

@media print {
  .no-print, .header, .footer, .topbar, .print-bar { display: none !important; }
  body { background: #fff; }
  .pc { margin: 0; max-width: none; }
  .pc-page { box-shadow: none; margin: 0; padding: 14mm 12mm; page-break-after: always; min-height: 0; }
  .pc-cover { min-height: 265mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { size: A4; margin: 0; }
}

/* responsive */
@media (max-width: 1200px) {
  .cat-tiles { grid-template-columns: repeat(4, 1fr); }
  .brand-wall { grid-template-columns: repeat(3, 1fr); }
  .nav a { padding: 8px 8px; }
}
@media (max-width: 1000px) {
  .hsearch { display: none; }
  .slides { height: 560px; }
  .slide { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; align-content: start; }
  .slide-text { padding: 34px 32px 0; }
  .slide-img { padding: 10px 32px 60px; }
  .slide-img img { max-height: 280px; }
  .qbar .wrap { grid-template-columns: repeat(2, 1fr); }
  .qbar a:nth-child(2) { border-inline-end: 1px solid var(--line); }
  .qbar a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .ind-cards, .ind-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .svc { grid-template-columns: repeat(2, 1fr); }
  .cust { grid-template-columns: repeat(3, 1fr); }
  .cta { grid-template-columns: 1fr; }
  .cta .ph { order: -1; }
  .pd, .rfq-layout, .builder, .layout, .two-col { grid-template-columns: minmax(0, 1fr); }
  .pd { gap: 20px; }
  .pd-img { aspect-ratio: 4/3; }
  .filters { position: static; max-height: none; padding: 0; }
  .f-toggle { display: flex; }
  .filters .f-body { display: none; margin-top: 14px; }
  .filters.open .f-body { display: block; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .nav { display: none; position: absolute; top: 66px; right: 0; left: 0; background: #fff; flex-direction: column; padding: 6px 16px 12px; box-shadow: 0 8px 16px rgba(0,0,0,.08); }
  .nav.open { display: flex; }
  .nav a { padding: 11px 0; border-bottom: 1px solid var(--line); }
  .nav a.on::after { display: none; }
  .menu-btn { display: block; }
  .header-in { gap: 10px; height: 66px; }
  .logo img { height: 38px; }
  .rfq-btn { font-size: 13.5px; }
  .topbar .wrap span:first-child { display: none; }
  .slides { height: 540px; }
  .slide-text { padding: 26px 16px 0; }
  .slide-text h1, .slide-text h2 { font-size: 26px; }
  .slide-text p { font-size: 15px; margin-bottom: 16px; }
  .slide-img { padding: 6px 16px 54px; }
  .slide-img img { max-height: 230px; }
  .slide-img.multi img { max-height: 170px; }
  .c-arrow { display: none; }
  .c-dots { right: 16px; }
  .qbar .wrap { padding: 0; }
  .qbar a { padding: 14px 12px; gap: 10px; }
  .qbar small { display: none; }
  section.sec { padding: 46px 0; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .sec-head h2 { font-size: 24px; }
  .cat-tiles { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .cat-tile span { font-size: 13px; }
  .ind-cards, .ind-grid, .steps, .svc, .form-grid, .foot-grid { grid-template-columns: 1fr; }
  .brand-wall { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cust { grid-template-columns: repeat(2, 1fr); }
  .cta > div { padding: 28px 22px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card .thumb { padding: 10px; }
  .card .body { padding: 10px 10px 12px; }
  .card h3 { font-size: 14.5px; }
  .card p { font-size: 12.5px; -webkit-line-clamp: 2; }
  .card .acts { flex-direction: column; gap: 6px; }
  .page-head h1, .hero h1 { font-size: 27px; }
  .pd h1 { font-size: 28px; }
  .pd-img { padding: 20px; }
  .pc-page { padding: 24px; }
  .pc-prod { grid-template-columns: 1fr; }
  .print-bar { top: 66px; }
}

/* fixes: blend white product photos into light backgrounds */
.slide-img img { mix-blend-mode: multiply; filter: none; }
.cat-tile .ph { display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cat-tile .ph img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.ind-card .ph img { width: auto; height: auto; }
.cta .ph { background: linear-gradient(135deg, #f4f4f4, #e2e2e2); }
.cta .ph img { mix-blend-mode: multiply !important; filter: none; border-radius: 0 !important; }
.slide-img { z-index: auto; position: static; }
.slide-text { z-index: 2; }
.slide-bg { z-index: auto; }
.c-dots { direction: rtl; }

/* hero photos (img/hero/hero-N.jpg) — square photos sit in the left half and fade into the text side */
.slide-photo { position: absolute; top: 0; left: 0; width: 56%; height: 100%; object-fit: cover; object-position: var(--fx, 50%) 50%;
  -webkit-mask-image: linear-gradient(to right, #000 78%, transparent 100%); mask-image: linear-gradient(to right, #000 78%, transparent 100%); }
.slide.has-photo .slide-img { display: none; }
.slide.has-photo .slide-photo { transform: scale(1.04); transition: transform 6s ease-out; }
.slide.has-photo.on .slide-photo { transform: scale(1); }
@media (max-width: 1000px) {
  .slide-photo { top: auto; bottom: 0; width: 100%; height: 50%; object-position: var(--fx, 50%) 45%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%); mask-image: linear-gradient(to bottom, transparent 0, #000 22%); }
}

/* logos */
.blogo-box { height: 56px; display: flex; align-items: center; justify-content: flex-start; margin-bottom: 6px; }
.blogo { max-height: 46px; max-width: 170px; width: auto; height: auto; object-fit: contain; }
.brand-card .bn { font-size: 20px; }
.ologos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.olog { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); height: 78px; display: flex; align-items: center; justify-content: center; padding: 12px 16px; transition: box-shadow .2s, border-color .2s; }
a.olog:hover { box-shadow: var(--shadow); border-color: transparent; }
.olog img { max-height: 44px; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.olog:hover img, a.olog img { filter: none; opacity: 1; }
.olog.txt { font-family: Roboto, sans-serif; color: var(--text-2); font-weight: 500; direction: ltr; }
.cust.logos { grid-template-columns: repeat(5, 1fr); }
.cust .ci { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 18px 12px; text-align: center; background: #fff; }
.cust .ci img { height: 64px; max-width: 130px; width: auto; object-fit: contain; }
.cust .ci .ph { height: 64px; width: 64px; border-radius: 50%; background: var(--bg-2); display: block; }
.cust .ci em { font-style: normal; font-size: 13px; color: var(--text-2); line-height: 1.6; }
.brand-head { display: flex; align-items: center; gap: 24px; }
.brand-head img { max-height: 70px; max-width: 220px; background: #fff; padding: 10px 14px; border-radius: var(--radius); border: 1px solid var(--line); }
.pd-blogo { max-height: 36px; max-width: 150px; margin-bottom: 4px; }
@media (max-width: 1000px) { .cust.logos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .cust.logos { grid-template-columns: repeat(2, 1fr); } .ologos { grid-template-columns: repeat(2, 1fr); } .brand-head { flex-direction: column; align-items: flex-start; gap: 10px; } .blogo { max-width: 130px; } }
.brand-card > .chip { align-self: flex-start; margin-top: 6px; }
.cust .ci img.on-dark { background: #2b2b2b; padding: 8px 12px; border-radius: 4px; box-sizing: content-box; height: 48px; }
.slide-bg { z-index: 0 !important; } .slide-photo { z-index: 1; } .slide-text { position: relative; z-index: 2; }
