/* ==========================================================================
   Pas Espadana Refractory — public site styles
   Design tokens taken from the Figma file "Pas nasooz New"
   ========================================================================== */

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #e3212b;
  --red-dark: #b91822;
  --red-soft: #fff0f1;
  --ink: #25272b;
  --text: #4d5158;
  --muted: #6c7077;
  --line: #e1e3e6;
  --soft: #f5f6f7;
  --dark: #191c20;
  --dark-line: #41454b;
  --dark-muted: #a9afb7;
  --dark-text: #b9bec5;
  --amber-bg: #fff7e7;
  --amber: #946618;
  --green-bg: #edf6f1;
  --green: #27715b;
  --radius: 4px;
  --radius-card: 8px;
  --container: 1280px;
  --gutter: 80px;
  --header-h: 133px;
  --font: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
  background: #fff;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { display: block; max-width: 100%; }
picture { width: 100%; height: 100%; }
picture img { width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
.icon { flex: none; stroke: currentColor; }
.ltr { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .ltr { text-align: right; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--red); color: #fff; padding: 8px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Buttons & tags ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 20px; border-radius: var(--radius);
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 14px; font-weight: 600; line-height: 1.8; white-space: nowrap; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn--primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn .icon { width: 20px; height: 20px; }
.btn[disabled] { opacity: .6; cursor: progress; }

.tag {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--radius);
  background: var(--soft); color: var(--muted); font-size: 12px; line-height: 1.8; white-space: nowrap;
}
.tag--red { background: var(--red-soft); color: var(--red-dark); }
.tag--amber { background: var(--amber-bg); color: var(--amber); }
.tag--green { background: var(--green-bg); color: var(--green); }
a.tag:hover { color: var(--red-dark); background: var(--red-soft); }
.tag.is-active { background: var(--red-soft); color: var(--red-dark); }

.link-arrow { color: var(--red); font-size: 13px; font-weight: 600; }
.link-arrow::after { content: " ←"; }
[dir="ltr"] .link-arrow::after { content: " →"; }

/* ---------- Header ---------- */
.topbar { background: var(--soft); color: var(--muted); font-size: 11px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 30px; }
.topbar a:hover { color: var(--red); }
.topbar__end { display: flex; align-items: center; gap: 18px; }
.topbar__contact { direction: ltr; display: flex; gap: 8px; }
.lang-switch { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--ink); }
.lang-switch:hover { color: var(--red); }

.site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.site-header__main { display: flex; align-items: center; justify-content: space-between; height: 102px; gap: 24px; }
.brand { display: block; width: 210px; height: 84px; flex: none; }
.brand img { width: 210px; height: 84px; object-fit: contain; }
.main-nav ul { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.main-nav a { position: relative; display: inline-block; font-size: 14px; font-weight: 500; color: var(--ink); padding: 6px 0 8px; }
.main-nav a:hover { color: var(--red); }
.main-nav a[aria-current="page"] { color: var(--red); font-weight: 700; }
.main-nav a[aria-current="page"]::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--red); }
.icon-btn.menu-toggle { display: none; }
.mobile-quick { display: none; }

/* Drawer (mobile) */
.drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(25, 28, 32, .5); opacity: 0; transition: opacity .2s; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
  position: absolute; inset-block: 0; right: 0; width: min(320px, 86vw); background: #fff;
  padding: 20px; display: flex; flex-direction: column; gap: 8px; transform: translateX(100%); transition: transform .25s;
  overflow-y: auto;
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.drawer__panel nav a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); font-weight: 500; }
.drawer__panel nav a[aria-current="page"] { color: var(--red); font-weight: 700; }
.drawer__contact { margin-top: auto; color: var(--muted); font-size: 13px; display: grid; gap: 6px; }

.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; }

/* ---------- Section scaffolding ---------- */
.section { padding-block: 64px; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--dark); color: #fff; }
.section--tight { padding-block: 40px; }
.section + .section:not(.section--soft):not(.section--dark):not(.cta) { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 32px; }
.section-head__text { flex: 1; display: grid; gap: 8px; }
.eyebrow { color: var(--red); font-size: 12px; font-weight: 700; line-height: 1.8; }
.section-title { font-size: 32px; font-weight: 700; line-height: 1.5; color: var(--ink); }
.section--dark .section-title { color: #fff; }
.section-lead { color: var(--muted); font-size: 15px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 12px; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-inline-start: 6px; color: var(--muted); }
.breadcrumb a:hover { color: var(--red); }

/* ---------- Page intro ---------- */
.page-intro { background: var(--soft); padding-block: 42px; }
.page-intro .container { display: grid; gap: 12px; }
.page-intro h1 { font-size: 40px; font-weight: 700; line-height: 1.8; }
.page-intro p { color: var(--muted); font-size: 16px; max-width: 900px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--dark); color: #fff; min-height: 620px; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to left, rgba(25,28,32,.94) 0%, rgba(25,28,32,.73) 40%, rgba(25,28,32,.19) 100%); }
[dir="ltr"] .hero::before { background: linear-gradient(to right, rgba(25,28,32,.94) 0%, rgba(25,28,32,.73) 40%, rgba(25,28,32,.19) 100%); }
[dir="ltr"] .hero h1 { font-size: 50px; line-height: 1.25; }
[dir="ltr"] body, [dir="ltr"] .prose { line-height: 1.7; }
.hero .container { position: relative; padding-block: 72px; }
.hero__content { max-width: 665px; display: grid; gap: 24px; }
.hero__eyebrow { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; }
.hero__eyebrow::before { content: ""; width: 32px; height: 3px; background: var(--red); order: 0; }
.hero h1 { font-size: 54px; font-weight: 800; line-height: 1.45; white-space: pre-line; }
.hero__text { font-size: 18px; line-height: 2; color: #e2e4e7; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__actions .btn:not(.btn--primary) { border-color: #fff; }
.hero__foot { position: absolute; inset-inline: var(--gutter); bottom: 28px; display: flex; justify-content: space-between; font-size: 12px; color: #d8dbdf; }
.hero__foot .ltr { font-size: 11px; color: #c4c8cd; letter-spacing: .02em; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

.cat-card {
  display: flex; flex-direction: column; gap: 18px; min-height: 190px; padding: 24px;
  background: var(--soft); border: 1px solid var(--line); transition: border-color .15s, background-color .15s;
}
.cat-card:hover { border-color: var(--red); background: #fff; color: inherit; }
.cat-card .icon { width: 30px; height: 30px; color: var(--red); }
.cat-card h3 { font-size: 19px; font-weight: 700; line-height: 1.8; }
.cat-card span { margin-top: auto; color: var(--muted); font-size: 12px; }
.other-cats { margin-top: 24px; color: var(--muted); font-size: 13px; }
.other-cats a { color: var(--muted); }
.other-cats a:hover { color: var(--red); }
.other-cats a + a::before { content: "•"; margin-inline: 12px; color: var(--muted); }

.product-card {
  position: relative; display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; transition: box-shadow .15s, border-color .15s;
}
.product-card:hover { border-color: #cfd2d6; box-shadow: 0 8px 24px rgba(25, 28, 32, .07); }
.product-card__media { aspect-ratio: 2 / 1; background: var(--soft); overflow: hidden; }
.product-card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px; flex: 1; }
.product-card__cat { font-size: 12px; color: var(--muted); }
.product-card h3 { font-size: 19px; font-weight: 700; line-height: 1.8; }
.product-card h3 a::after { content: ""; position: absolute; inset: 0; }
.product-card__excerpt { color: var(--muted); font-size: 13px; }
.product-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; margin-top: auto; }
.product-card__more { border-top: 1px solid var(--line); padding-top: 10px; }
.product-card--compact .product-card__media { aspect-ratio: 309 / 165; }

.industry-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.industry { display: flex; flex-direction: column; gap: 16px; padding: 24px; border: 1px solid var(--dark-line); }
.industry + .industry { border-inline-start: 0; }
.industry .icon { width: 30px; height: 30px; color: var(--red); }
.industry h3 { font-size: 21px; font-weight: 600; color: #fff; line-height: 1.8; }
.industry p { font-size: 12px; color: var(--dark-muted); }
.industries-head { display: flex; gap: 80px; align-items: flex-start; margin-bottom: 32px; }
.industries-head h2 { flex: 1; }
.industries-head p { width: 400px; color: var(--dark-text); font-size: 15px; }

.split { display: grid; grid-template-columns: 584px 1fr; gap: 64px; align-items: center; }
.split__media { aspect-ratio: 584 / 430; overflow: hidden; }
.split__body { display: grid; gap: 24px; justify-items: start; }
.split__body .section-title { white-space: pre-line; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; width: 100%; }
.checks li { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.checks .icon { width: 20px; height: 20px; color: var(--red); }

.doc-card { display: flex; align-items: center; gap: 16px; padding: 22px; background: #fff; border: 1px solid var(--line); transition: border-color .15s; }
.doc-card:hover { border-color: var(--red); color: inherit; }
.doc-card__text { flex: 1; display: grid; gap: 6px; }
.doc-card__title { font-size: 16px; font-weight: 600; }
.doc-card__meta { font-size: 12px; color: var(--muted); }
.doc-card .icon { width: 30px; height: 30px; color: var(--red); }

.article-card { position: relative; display: flex; flex-direction: column; gap: 14px; }
.article-card__media { aspect-ratio: 411 / 210; overflow: hidden; background: var(--soft); }
.article-card__media img { transition: transform .4s; }
.article-card:hover .article-card__media img { transform: scale(1.03); }
.article-card__topic { color: var(--red); font-size: 12px; }
.article-card h3 { font-size: 20px; font-weight: 700; line-height: 1.8; }
.article-card h3 a::after { content: ""; position: absolute; inset: 0; }
.article-card__meta { color: var(--muted); font-size: 13px; }
.article-card--boxed { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; gap: 0; }
.article-card--boxed .article-card__body { display: flex; flex-direction: column; gap: 10px; padding: 24px; flex: 1; }
.article-card--boxed .article-card__excerpt { color: var(--muted); font-size: 14px; }
.article-card--boxed .article-card__meta { font-size: 12px; margin-top: auto; }

/* ---------- CTA ---------- */
.cta { background: var(--red-soft); border-top: 2px solid var(--red); padding-block: 48px; }
.cta .container { display: flex; align-items: center; gap: 60px; justify-content: space-between; }
.cta h2 { font-size: 28px; font-weight: 700; line-height: 1.8; }
.cta p { color: var(--muted); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 20px 18px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--soft); padding-block: 40px; }
.footer-grid { display: grid; grid-template-columns: 1fr 230px 280px; gap: 56px; }
.footer-about { display: grid; gap: 12px; align-content: start; }
.footer-about img { width: 210px; height: 84px; object-fit: contain; }
.footer-about p { color: var(--muted); font-size: 14px; }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col h2 { font-size: 16px; font-weight: 700; }
.footer-col a, .footer-col li { color: var(--muted); font-size: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a:hover { color: var(--red); }
.footer-contact a, .footer-contact .ltr { color: var(--ink); font-size: 16px; }
.footer-contact address { font-style: normal; display: grid; gap: 10px; }
.footer-social { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 28px; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; }

/* ---------- Catalog ---------- */
.catalog { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.filters { background: var(--soft); border-radius: var(--radius); padding: 24px; display: grid; gap: 20px; position: sticky; top: 16px; }
.filters__head { display: flex; justify-content: space-between; align-items: baseline; }
.filters__head h2 { font-size: 18px; font-weight: 700; }
.filters__head a { color: var(--red); font-size: 12px; }
.filters hr { border: 0; border-top: 1px solid var(--line); margin: 0; width: 100%; }
.filters fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
.filters legend { font-size: 14px; font-weight: 700; margin-bottom: 12px; padding: 0; }
.check { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); cursor: pointer; }
.check input { appearance: none; width: 16px; height: 16px; border: 1px solid var(--line); border-radius: 3px; background: #fff; flex: none; margin: 0; display: grid; place-content: center; cursor: pointer; }
.check input:checked { background: var(--red); border-color: var(--red); }
.check input:checked::after { content: ""; width: 8px; height: 5px; border: 2px solid #fff; border-top: 0; border-inline-end: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check:has(input:checked) { color: var(--red); font-weight: 700; }
.filters__note { color: var(--muted); font-size: 12px; }
.filters-toggle { display: none; }

.search-box { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.search-box input { flex: 1; border: 0; outline: 0; background: none; font-size: 13px; min-width: 0; }
.search-box button { border: 0; background: none; padding: 0; cursor: pointer; color: var(--ink); display: flex; }
.search-box:focus-within { border-color: var(--ink); }

.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-block: 24px; color: var(--muted); font-size: 13px; }
.results-bar select { border: 0; background: var(--soft); border-radius: var(--radius); padding: 3px 10px; font-size: 12px; color: var(--muted); }
.empty { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius-card); }

.pagination { display: flex; justify-content: center; align-items: center; gap: 10px; padding-block: 24px; list-style: none; margin: 0; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; border-radius: var(--radius); background: var(--soft); color: var(--muted); font-size: 16px; padding: 0 8px; }
.pagination a:hover { color: var(--red); }
.pagination [aria-current="page"] { background: var(--red); color: #fff; }
.pagination .pg-arrow { background: none; }

.helper-box { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px; background: var(--soft); margin-top: 8px; }
.helper-box h2 { font-size: 18px; font-weight: 700; }
.helper-box p { color: var(--muted); font-size: 13px; }

/* ---------- Product detail ---------- */
.product-hero { padding-block: 40px; }
.product-hero__grid { display: grid; grid-template-columns: 600px 1fr; gap: 64px; align-items: center; margin-top: 28px; }
.gallery { display: grid; gap: 16px; }
.gallery__main { aspect-ratio: 600 / 420; border-radius: 6px; overflow: hidden; background: var(--soft); }
.gallery__thumbs { display: flex; gap: 12px; align-items: center; }
.gallery__thumbs button { width: 104px; height: 74px; padding: 0; border: 2px solid transparent; background: var(--soft); cursor: pointer; overflow: hidden; flex: none; }
.gallery__thumbs button[aria-pressed="true"] { border-color: var(--red); }
.gallery__thumbs span { color: var(--muted); font-size: 11px; }
.product-info { display: grid; gap: 20px; justify-items: start; }
.product-info h1 { font-size: 39px; font-weight: 800; line-height: 1.6; }
.product-info__summary { color: var(--muted); font-size: 16px; }
.product-info hr { width: 100%; border: 0; border-top: 1px solid var(--line); margin: 0; }
.product-facts { display: grid; gap: 8px; font-size: 14px; margin: 0; }
.product-facts div { display: flex; gap: 6px; }
.product-facts dt { color: var(--ink); }
.product-facts dt::after { content: ":"; }
.product-facts dd { margin: 0; }
.product-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.subnav { background: var(--soft); position: sticky; top: 0; z-index: 10; }
.subnav ul { display: flex; gap: 36px; height: 64px; align-items: center; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.subnav a { font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.subnav a.is-active, .subnav a:hover { color: var(--red); }

.product-detail { display: grid; grid-template-columns: 1fr 620px; gap: 48px; align-items: start; }
.product-detail--single { grid-template-columns: minmax(0, 860px); }
.prose-block { display: grid; gap: 22px; }
.prose-block h2 { font-size: 27px; font-weight: 700; line-height: 1.8; }
.prose-block h3 { font-size: 21px; font-weight: 700; }
.prose-block .lead { font-size: 16px; line-height: 2; color: var(--muted); }
.prose-block hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
.spec-table { width: 100%; border: 1px solid var(--line); border-collapse: collapse; font-size: 13px; }
.spec-table th, .spec-table td { padding: 15px 20px; text-align: start; vertical-align: top; }
.spec-table th { width: 215px; font-weight: 600; color: var(--ink); }
.spec-table td { color: var(--muted); }
.spec-table tr:nth-child(odd) { background: var(--soft); }
.spec-table .unit { color: var(--muted); font-size: 12px; margin-inline-start: 6px; direction: ltr; unicode-bidi: isolate; }

.doc-band { display: grid; grid-template-columns: 640px 1fr; gap: 48px; align-items: start; }
.doc-box { background: #fff; border: 1px solid var(--line); padding: 24px; display: grid; gap: 12px; justify-items: start; }
.doc-box h2 { font-size: 22px; font-weight: 700; }
.doc-box .file { direction: ltr; font-size: 13px; }
.inquiry { display: grid; gap: 16px; justify-items: start; }
.inquiry h2 { font-size: 24px; font-weight: 700; }
.inquiry p { color: var(--muted); font-size: 14px; }

/* ---------- Blog ---------- */
.featured-article { display: grid; grid-template-columns: 640px 1fr; gap: 48px; align-items: center; }
.featured-article__media { aspect-ratio: 640 / 350; overflow: hidden; }
.featured-article__body { display: grid; gap: 18px; justify-items: start; }
.featured-article h2 { font-size: 34px; font-weight: 700; line-height: 1.6; }
.featured-article p { color: var(--muted); font-size: 16px; }
.blog-tools { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.blog-tools .search-box { width: 330px; }
.topics { display: flex; gap: 10px; flex-wrap: wrap; }

.article-head { padding-block: 48px; }
.article-head .container { max-width: calc(1120px + var(--gutter) * 2); display: grid; gap: 18px; justify-items: start; }
.article-head h1 { font-size: 46px; font-weight: 800; line-height: 1.5; }
.article-head .standfirst { color: var(--muted); font-size: 17px; }
.article-meta { color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.article-meta > * + *::before { content: "•"; margin-inline-end: 14px; }
.article-cover { aspect-ratio: 1440 / 440; max-height: 440px; overflow: hidden; background: var(--soft); }
.article-layout { display: grid; grid-template-columns: 270px 1fr; gap: 64px; padding-block: 56px; align-items: start; }
.article-layout.container { max-width: calc(1200px + 120px * 2); padding-inline: 120px; }
.article-aside { display: grid; gap: 24px; position: sticky; top: 16px; }
.toc { background: var(--soft); padding: 24px; display: grid; gap: 16px; }
.toc h2 { font-size: 18px; font-weight: 700; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.toc a { color: var(--muted); font-size: 13px; }
.toc a:hover, .toc a.is-active { color: var(--red); }
.toc .lvl-3 { padding-inline-start: 12px; }
.aside-cta { background: var(--red-soft); padding: 24px; display: grid; gap: 14px; justify-items: start; }
.aside-cta .icon { width: 28px; height: 28px; color: var(--red); }
.aside-cta h2 { font-size: 18px; font-weight: 700; }
.aside-cta p { color: var(--muted); font-size: 13px; }

.key-summary { background: var(--soft); border-inline-start: 3px solid var(--red); padding: 20px 24px; display: grid; gap: 8px; }
.key-summary h2 { font-size: 16px; font-weight: 700; }
.key-summary p { color: var(--text); font-size: 15px; }

.prose { color: var(--text); font-size: 16px; line-height: 2.15; display: grid; gap: 26px; }
.prose > p:first-child { font-size: 18px; font-weight: 500; line-height: 2.1; color: var(--ink); }
.prose h2 { font-size: 25px; font-weight: 700; color: var(--ink); line-height: 1.8; margin-bottom: -14px; }
.prose h3 { font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: -14px; }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-inline-start: 22px; display: grid; gap: 8px; }
.prose img { border-radius: 6px; height: auto; }
.prose figure { display: grid; gap: 8px; }
.prose figcaption { color: var(--muted); font-size: 13px; }
.prose blockquote { margin: 0; background: var(--soft); border-inline-start: 3px solid var(--red); padding: 24px; display: grid; gap: 10px; line-height: 1.8; }
.prose blockquote strong { font-size: 21px; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: start; }
.prose th { background: var(--soft); color: var(--ink); }
.article-foot { display: grid; gap: 16px; padding-top: 26px; border-top: 1px solid var(--line); }
.article-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.author-box { display: flex; gap: 16px; align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: 6px; }
.author-box__avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--red-soft); color: var(--red); display: grid; place-items: center; font-weight: 700; flex: none; }
.author-box strong { display: block; }
.author-box p { color: var(--muted); font-size: 13px; }

.related-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.related-item { position: relative; display: flex; align-items: center; gap: 20px; padding: 16px; background: #fff; }
.related-item__text { flex: 1; display: grid; gap: 8px; }
.related-item h3 { font-size: 18px; font-weight: 700; line-height: 1.8; }
.related-item h3 a::after { content: ""; position: absolute; inset: 0; }
.related-item__meta { color: var(--red); font-size: 12px; }
.related-item__media { width: 140px; height: 112px; flex: none; overflow: hidden; }

.comments { max-width: calc(960px + var(--gutter) * 2); }
.comments .container, .comments-inner { display: grid; gap: 24px; }
.comments h2 { font-size: 28px; font-weight: 700; }
.comment { border: 1px solid var(--line); border-radius: 6px; padding: 24px; display: grid; gap: 12px; }
.comment header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.comment strong { font-size: 15px; }
.comment time { color: var(--muted); font-size: 12px; }
.comment p { color: var(--muted); font-size: 15px; }
.comment__reply { margin-top: 4px; padding: 16px 20px; background: var(--soft); border-inline-start: 3px solid var(--red); display: grid; gap: 6px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 8px; }
.field > span, .field > label { font-size: 13px; font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; font-size: 14px; line-height: 1.8;
}
.field textarea { min-height: 118px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--ink); }
.field .ltr-input { direction: ltr; }
[dir="rtl"] .field .ltr-input { text-align: right; }
.form-submit { display: flex; align-items: center; gap: 20px; }
.form-submit p { flex: 1; color: var(--muted); font-size: 12px; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; opacity: 0; }
.alert { padding: 14px 18px; border-radius: var(--radius); font-size: 14px; }
.alert--green { background: var(--green-bg); color: var(--green); }
.alert--red { background: var(--red-soft); color: var(--red-dark); }
.alert--amber { background: var(--amber-bg); color: var(--amber); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border: 1px solid var(--line); background: #fff; }
.contact-card .icon { width: 24px; height: 24px; color: var(--red); margin-top: 4px; }
.contact-card h2 { font-size: 15px; font-weight: 700; }
.contact-card p, .contact-card a { color: var(--muted); font-size: 14px; }
.form-card { background: var(--soft); padding: 32px; }
.form-card h2 { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.map-embed iframe { width: 100%; height: 320px; border: 0; }

/* ---------- Simple page ---------- */
.page-body { max-width: 860px; }

/* ---------- Error ---------- */
.error-page { text-align: center; padding-block: 96px; display: grid; gap: 16px; justify-items: center; }
.error-page strong { font-size: 96px; line-height: 1; color: var(--red); font-weight: 800; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1280px) {
  :root { --gutter: 40px; }
  .split { grid-template-columns: 1fr 1fr; }
  .product-hero__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .product-detail { grid-template-columns: 1fr 1fr; }
  .doc-band { grid-template-columns: 1fr 1fr; }
  .featured-article { grid-template-columns: 1fr 1fr; }
  .article-layout.container { padding-inline: var(--gutter); }
}

@media (max-width: 1100px) {
  .main-nav ul { gap: 18px; }
  .brand, .brand img { width: 180px; height: 72px; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .industry + .industry { border-inline-start: 1px solid var(--dark-line); }
  .catalog { grid-template-columns: 240px 1fr; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --gutter: 20px; }
  body { font-size: 14px; }
  .topbar .container { justify-content: center; height: auto; padding-block: 6px; }
  .topbar__tagline { display: none; }
  .topbar__end { gap: 12px; }
  .topbar { font-size: 10px; }
  .site-header__main { height: auto; padding-block: 12px; }
  .main-nav, .site-header__cta { display: none; }
  .icon-btn.menu-toggle { display: inline-flex; }
  .mobile-quick { display: flex; align-items: center; gap: 8px; padding-bottom: 14px; }
  .mobile-quick nav { flex: 1; display: flex; }
  .mobile-quick nav a { flex: 1; display: flex; align-items: center; justify-content: center; height: 44px; font-size: 12px; font-weight: 500; border-bottom: 2px solid transparent; }
  .mobile-quick nav a[aria-current="page"] { color: var(--red); font-weight: 700; border-bottom-color: var(--red); }
  .mobile-quick .btn { min-height: 48px; height: auto; padding: 8px 12px; width: 134px; white-space: normal; text-align: center; line-height: 1.35; }
  .mobile-quick nav a { text-align: center; line-height: 1.3; }
  [dir="ltr"] .hero h1 { font-size: 32px; }

  .section { padding-block: 40px; }
  .section-head { flex-direction: column; align-items: stretch; gap: 16px; margin-bottom: 24px; }
  .section-head > .btn { order: 2; width: 100%; height: 48px; }
  .section-title { font-size: 24px; }
  .page-intro h1 { font-size: 28px; }
  .page-intro { padding-block: 28px; }

  .hero { min-height: 580px; align-items: flex-start; }
  .hero .container { padding-block: 40px 90px; }
  .hero::before { background: linear-gradient(to bottom, rgba(25,28,32,.75), rgba(25,28,32,.85)); }
  .hero h1 { font-size: 32px; }
  .hero__text { font-size: 16px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; height: 48px; }
  .hero__foot { flex-direction: column; gap: 16px; inset-inline: var(--gutter); }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; gap: 16px; }
  .cat-card { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 20px; }
  .cat-card h3 { font-size: 17px; flex: 1; }
  .cat-card span { width: 100%; margin: 0; }
  .industries-head { flex-direction: column; gap: 12px; }
  .industries-head p { width: auto; }
  .industry-grid { grid-template-columns: 1fr; gap: 0; }
  .industry + .industry { border-top: 0; }
  .industry { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 20px; }
  .industry h3 { flex: 1; font-size: 18px; }
  .industry p { width: 100%; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .split__media { order: 2; aspect-ratio: 372 / 274; }
  .split__body { display: contents; }
  .split .section-head__text { order: 1; }
  .split .checks { order: 3; }
  .split .btn { order: 4; width: 100%; height: 48px; }
  .cta .container { flex-direction: column; align-items: stretch; gap: 20px; }
  .cta .btn { order: 2; height: 48px; }
  .cta h2 { font-size: 22px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }

  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.is-open { display: grid; }
  .filters-toggle { display: inline-flex; width: 100%; }
  .results-bar { flex-wrap: wrap; }
  .helper-box { flex-direction: column; align-items: stretch; }

  .product-hero__grid, .product-detail, .doc-band, .featured-article, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .product-info h1 { font-size: 28px; }
  .product-actions { width: 100%; flex-direction: column; }
  .product-actions .btn { width: 100%; height: 48px; }
  .subnav ul { gap: 24px; height: 52px; }
  .spec-table th { width: 40%; }
  .spec-table th, .spec-table td { padding: 12px 14px; }
  .featured-article h2 { font-size: 24px; }
  .blog-tools { flex-direction: column; align-items: stretch; }
  .blog-tools .search-box { width: 100%; }
  .topics { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }

  .article-head { padding-block: 28px; }
  .article-head h1 { font-size: 27px; }
  .article-head .standfirst { font-size: 15px; }
  .article-cover { aspect-ratio: 412 / 240; }
  .article-layout { grid-template-columns: 1fr; gap: 28px; padding-block: 32px; }
  .article-aside { position: static; order: -1; }
  .article-aside .aside-cta { display: none; }
  .prose { font-size: 15px; gap: 20px; }
  .prose > p:first-child { font-size: 16px; }
  .prose h2 { font-size: 21px; margin-bottom: -8px; }
  .related-list { grid-template-columns: 1fr; }
  .related-item__media { width: 104px; height: 84px; }
  .comments h2 { font-size: 22px; }
  .form-row { grid-template-columns: 1fr; }
  .form-submit { flex-direction: column; align-items: stretch; }
  .form-submit .btn { height: 48px; }
  .form-card { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .topbar, .site-header, .site-footer, .cta, .subnav, .article-aside, .comments, .drawer { display: none !important; }
  body { font-size: 12pt; }
}
