/* ==========================================================================
   تیرازه — نمونه‌کار چاپخانه‌ی مفهومی RAJ
   ساختار فایل:
   1. توکن‌های تم (رنگ، فاصله، سایه، فونت)
   2. پایه و تایپوگرافی فارسی
   3. اجزای مشترک (دکمه، چیپ، فیلد، Dialog، Toast)
   4. هدر و ناوبری
   5. بخش‌ها: هیرو، محصولات، پیکربندی، نمونه‌کارها، راهنما، مراحل، خدمات، استعلام، اعتماد، سوالات، فوتر
   6. نمایش فیزیکی محصولات (Mockup) با CSS
   7. واکنش‌گرایی و کاهش حرکت
   ========================================================================== */

/* 1) توکن‌ها ------------------------------------------------------------- */
@font-face {
  font-family: "Vazirmatn";
  src: url("assets/fonts/Vazirmatn-VF.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* رنگ غالب: پترول/جوهر — خنثی: کاغذ گرم و گرافیت — تأکید: ورمیلیون محدود */
  --petrol-950: #051418;
  --petrol-900: #071E24;
  --petrol-800: #0D2B33;
  --petrol-700: #15404A;
  --petrol-600: #24596A;
  --paper: #F4EFE4;
  --paper-2: #EBE4D4;
  --paper-3: #DDD4BF;
  --graphite: #22272B;
  --muted: #5B6467;
  --on-dark-muted: #B9C4C5;
  --line: rgba(13, 43, 51, 0.14);
  --line-dark: rgba(244, 239, 228, 0.14);
  --accent: #D9462B;      /* دکمه‌ها و تأکیدها — کنتراست ۴٫۵+ با سفید */
  --accent-hi: #F0826A;   /* تأکید روی زمینه‌ی تیره */
  --accent-deep: #B33520;
  --cyan: #2BB6C9;        /* فقط جزئیات ریز چاپ (نشانه‌های ثبت، پروفایل) */
  --focus: #0E7C8F;
  --focus-dark: #7FE0EE;
  --ok: #1E7A4C;
  --danger: #B3261E;

  --font: "Vazirmatn", "Vazir", Tahoma, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --radius-s: 3px;
  --radius: 6px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow-soft: 0 1px 0 rgba(0, 0, 0, 0.04), 0 14px 28px -20px rgba(7, 30, 36, 0.45);
  --shadow-lift: 0 40px 70px -34px rgba(0, 0, 0, 0.7);
  --header-h: 72px;
}

/* 2) پایه ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  background: var(--petrol-900);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.9;
  color: var(--petrol-800);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
svg { overflow: hidden; }
html, body { overflow-x: clip; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 800; color: inherit; }
p { margin: 0 0 0.9em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl { margin: 0; }
dd { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
[hidden] { display: none !important; }
.visually-hidden {
  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: fixed; inset-block-start: 8px; inset-inline-start: 8px; z-index: 300;
  background: var(--paper); color: var(--petrol-800); padding: 10px 16px; border-radius: var(--radius-s);
  transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 20px; height: 20px; flex: none; fill: none; }
.icon--xl { width: 36px; height: 36px; color: var(--petrol-700); }
.icon--flip { transform: scaleX(-1); }
.num, .mono { font-family: var(--mono); direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.note-demo {
  font-size: 0.84rem; line-height: 1.8; color: var(--muted);
  border-inline-start: 2px solid var(--accent); padding-inline-start: 10px; margin-block: 14px 0;
}
.note-demo--light { color: var(--on-dark-muted); border-color: var(--accent-hi); }
.noscript { padding: 20px; background: var(--paper-2); text-align: center; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.section--ink :focus-visible,
.section--dark-deep :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible,
.dialog--narrow :focus-visible,
.sticky-cta :focus-visible,
.section--petrol :focus-visible,
.hero :focus-visible,
.quote-card :focus-visible.btn { outline-color: var(--focus-dark); }
.quote-card :focus-visible { outline-color: var(--focus); }

/* 3) اجزای مشترک --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius-s);
  font-weight: 700; font-size: 0.98rem; line-height: 1.3; text-decoration: none;
  border: 1.5px solid transparent; transition: background-color .2s, color .2s, border-color .2s, transform .15s var(--ease), box-shadow .2s;
  white-space: nowrap; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; transform: none; }
.btn--primary, .btn--accent { background: var(--accent); color: #fff; box-shadow: 0 10px 22px -14px rgba(217, 70, 43, .9); }
.btn--primary:hover:not(:disabled), .btn--accent:hover:not(:disabled) { background: var(--accent-deep); }
.btn--ghost { border-color: var(--petrol-800); color: var(--petrol-800); background: transparent; }
.btn--ghost:hover:not(:disabled) { background: var(--petrol-800); color: var(--paper); }
.btn--ghost-light { border-color: rgba(244, 239, 228, .45); color: var(--paper); background: transparent; }
.btn--ghost-light:hover:not(:disabled) { border-color: var(--paper); background: rgba(244, 239, 228, .08); }
.btn--on-dark { border-color: rgba(244, 239, 228, .4); color: var(--paper); }
.btn--on-dark:hover:not(:disabled) { background: var(--paper); color: var(--petrol-900); }
.btn--small { min-height: 42px; padding: 8px 16px; font-size: .92rem; }
.btn--lg { min-height: 56px; padding: 14px 30px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--nav { min-height: 44px; padding: 8px 18px; }

.link-btn, .link-plain, .link-arrow {
  color: inherit; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
  font-weight: 600;
}
.link-btn { font-size: .92rem; min-height: 44px; padding: 0 4px; color: var(--petrol-700); }
.link-btn--danger { color: var(--danger); }
.link-btn--light { color: var(--on-dark-muted); }
.link-plain { text-decoration: none; color: inherit; }
.link-plain:hover { text-decoration: underline; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none;
  border-bottom: 1.5px solid currentColor; padding-bottom: 2px; min-height: 44px; color: var(--accent);
}
.link-arrow::after { content: "←"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(-4px); }
.section--ink .link-arrow, .section--dark-deep .link-arrow { color: var(--accent-hi); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font-size: .86rem; font-weight: 700; letter-spacing: 0; color: var(--accent-deep);
}
.eyebrow--light { color: var(--accent-hi); }
.reg {
  position: relative; display: inline-block; width: 14px; height: 14px; border-radius: 50%;
  border: 1.2px solid currentColor; flex: none;
}
.reg::before, .reg::after {
  content: ""; position: absolute; background: currentColor; inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
}
.reg::before { width: 1.2px; height: 18px; }
.reg::after { width: 18px; height: 1.2px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: #FBF8F1; color: var(--petrol-800); font-size: .92rem; font-weight: 600;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--petrol-800); }
.chip[aria-pressed="true"] { background: var(--petrol-800); color: var(--paper); border-color: var(--petrol-800); }
.chip__count { font-size: .78rem; opacity: .75; font-variant-numeric: tabular-nums; }
.chips--dark .chip { background: transparent; color: var(--paper); border-color: var(--line-dark); }
.chips--dark .chip:hover { border-color: var(--paper); }
.chips--dark .chip[aria-pressed="true"] { background: var(--paper); color: var(--petrol-900); border-color: var(--paper); }
.chip--dark { background: transparent; color: var(--paper); border-color: var(--line-dark); }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field-label { font-weight: 700; font-size: .95rem; color: var(--petrol-800); }
.field input[type="text"], .field input[type="tel"], .field input[type="search"], .field input[type="number"],
.field select, .field textarea, .field-row input, .field-row select {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid #B9B09A; border-radius: var(--radius-s);
  background: #FFFDF8; color: var(--petrol-900); font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 110px; resize: vertical; line-height: 1.8; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--petrol-700) 50%), linear-gradient(135deg, var(--petrol-700) 50%, transparent 50%);
  background-position: 18px 55%, 13px 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-end: 34px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--petrol-800); box-shadow: 0 0 0 3px rgba(14, 124, 143, .25); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); background: #FFF6F4; }
.field input:disabled, .field select:disabled { background: var(--paper-2); color: var(--muted); }
.field input[dir="ltr"] { text-align: start; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-row > .field { min-width: 0; }
.field-hint { font-size: .84rem; color: var(--muted); line-height: 1.7; margin: 0; }
.field-msg { font-size: .88rem; line-height: 1.7; color: var(--danger); margin: 0; font-weight: 600; }
.field-msg:not(.is-error) { color: var(--petrol-700); }
.field-msg.is-error { color: var(--danger); }
.field-foot { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.field-count { font-size: .82rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.field--inline { flex-direction: column; }
.req { color: var(--accent); font-weight: 800; }

.toast-region {
  position: fixed; z-index: 400; inset-inline: 16px; bottom: 16px; margin-inline: auto; max-width: 440px;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  pointer-events: auto; background: var(--petrol-900); color: var(--paper); padding: 12px 16px; border-radius: var(--radius-s);
  box-shadow: var(--shadow-lift); font-size: .94rem; line-height: 1.7; border-inline-start: 3px solid var(--accent-hi);
  animation: toast-in .3s var(--ease);
}
.toast--success { border-color: #6BD39B; }
.toast--error { border-color: #FF8B7A; background: #2A1412; }
.toast.is-leaving { opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Dialog */
dialog.dialog, dialog.drawer {
  border: 0; padding: 0; margin: auto; background: var(--paper); color: var(--petrol-800);
  width: min(880px, calc(100vw - 24px)); max-width: calc(100vw - 24px); max-height: calc(100dvh - 32px);
  border-radius: var(--radius); box-shadow: var(--shadow-lift);
}
dialog.dialog--narrow { width: min(560px, calc(100vw - 24px)); }
dialog.dialog--wide { width: min(1040px, calc(100vw - 24px)); }
dialog.dialog--lb { width: min(1000px, calc(100vw - 24px)); }
dialog::backdrop { background: rgba(5, 20, 24, .72); backdrop-filter: blur(3px); }
dialog[open] { animation: dialog-in .32s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.dialog__scroll { max-height: calc(100dvh - 32px); overflow: auto; padding: clamp(20px, 3vw, 36px); position: relative; overscroll-behavior: contain; }
.dialog__close {
  position: absolute; inset-block-start: 12px; inset-inline-end: 12px; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; background: var(--paper-2); color: var(--petrol-800); z-index: 2;
}
.dialog__close:hover { background: var(--petrol-800); color: var(--paper); }
.dialog__close .icon { width: 18px; height: 18px; }

dialog.drawer, dialog.dialog--drawer {
  inset-block: 0; inset-inline-start: 0; inset-inline-end: auto; margin: 0; height: 100%; max-height: 100dvh;
  width: min(420px, 92vw); max-width: 92vw; border-radius: 0; background: var(--paper);
}
dialog.dialog--drawer { width: min(440px, 94vw); max-width: 94vw; }
dialog.dialog--drawer .dialog__scroll--drawer { max-height: 100dvh; height: 100%; padding: 22px 22px 28px; }
.drawer__inner { padding: 22px; min-height: 100%; }
.drawer__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-block-end: 16px; }
.drawer__title { font-size: 1.25rem; font-weight: 800; }
.drawer__cta { display: grid; gap: 10px; margin-block: 22px; }
.drawer__note { font-size: .84rem; color: var(--muted); }
.drawer .mobile-nav { border-top: 1px solid var(--line); }
.mobile-link {
  display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 12px 4px;
  border-bottom: 1px solid var(--line); font-size: 1.08rem; font-weight: 700; text-decoration: none;
}
.mobile-link::after { content: "←"; color: var(--accent); }
dialog.drawer::backdrop, dialog.dialog--drawer::backdrop { background: rgba(5, 20, 24, .66); }
@keyframes drawer-in { from { transform: translateX(-100%); } to { transform: none; } }
dialog.drawer[open] { animation: drawer-in .34s var(--ease); }
dialog.dialog--drawer[open] { animation: drawer-in .34s var(--ease); }

/* 4) هدر ------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--petrol-900); color: var(--paper);
  border-bottom: 1px solid var(--line-dark);
}
.site-header__inner { position: relative; display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand__mark { color: var(--paper); display: grid; place-items: center; }
.brand__mark svg { width: 34px; height: 34px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-size: 1.22rem; font-weight: 900; }
.brand__en { font-family: var(--mono); font-size: .66rem; letter-spacing: .22em; color: var(--on-dark-muted); direction: ltr; margin-block-start: 3px; }
.brand--footer .brand__text strong { font-size: 1.4rem; }

.primary-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: 12px; }
.primary-nav__list { display: flex; gap: 2px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; border-radius: var(--radius-s);
  color: var(--paper); text-decoration: none; font-size: .95rem; font-weight: 600; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.nav-link:hover { background: rgba(244, 239, 228, .08); color: #fff; }
.nav-link--button .icon { width: 16px; height: 16px; transition: transform .2s; }
.nav-link--button[aria-expanded="true"] .icon { transform: rotate(180deg); }
.site-header__actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; position: relative; }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: var(--radius-s);
  color: var(--paper); position: relative; transition: background-color .2s;
}
.icon-btn:hover { background: rgba(244, 239, 228, .1); }
.icon-btn .icon { width: 22px; height: 22px; }
.icon-btn--menu { display: none; }
.badge {
  position: absolute; inset-block-start: 3px; inset-inline-end: 1px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--accent-hi); color: var(--petrol-900); font-size: .75rem; font-weight: 800; display: grid; place-items: center;
}

.search { position: relative; }
.search__panel {
  position: absolute; inset-block-start: calc(100% + 10px); inset-inline-end: 0; width: min(380px, calc(100vw - 32px));
  background: var(--paper); color: var(--petrol-800); padding: 14px; border-radius: var(--radius); box-shadow: var(--shadow-lift); z-index: 120;
}
.search__panel input {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--petrol-800); border-radius: var(--radius-s); background: #fff;
  color: var(--petrol-900); font-size: 1rem;
}
.search__results { margin-block-start: 10px; max-height: 300px; overflow: auto; }
.search__results li { border-bottom: 1px solid var(--line); }
.search__results li:last-child { border-bottom: 0; }
.search-result { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: 10px 6px; text-align: start; min-height: 48px; }
.search-result:hover, .search-result:focus-visible { background: var(--paper-2); }
.search-result__name { font-weight: 800; }
.search-result__meta { font-size: .84rem; color: var(--muted); }
.search-hint { padding: 10px 6px; font-size: .9rem; color: var(--muted); line-height: 1.8; }

.cat-menu {
  position: absolute; inset-inline: 0; top: 100%; background: var(--petrol-800); color: var(--paper); border-top: 1px solid var(--line-dark);
  box-shadow: var(--shadow-lift); padding-block: 26px; z-index: 99;
}
.cat-menu__title { font-size: .85rem; color: var(--on-dark-muted); margin-block-end: 14px; }
.cat-menu__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cat-menu__item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; text-align: start; padding: 18px;
  border: 1px solid var(--line-dark); border-radius: var(--radius-s); min-height: 96px; transition: border-color .2s, background-color .2s;
}
.cat-menu__item:hover { border-color: var(--accent-hi); background: rgba(240, 130, 106, .08); }
.cat-menu__item strong { font-size: 1.05rem; }
.cat-menu__item span { font-size: .86rem; color: var(--on-dark-muted); line-height: 1.7; }
.cat-menu__item--solo { justify-content: center; }
.cat-menu__item--solo strong { color: var(--accent-hi); }

/* 5) بخش‌ها ------------------------------------------------------------- */
.section { padding-block: var(--section-y); position: relative; }
.section--paper { background: var(--paper); }
.section--ink { background: var(--petrol-800); color: var(--paper); }
.section--dark-deep { background: var(--petrol-900); color: var(--paper); }
.section--petrol { background: var(--petrol-700); color: var(--paper); }
.section--faq { padding-block-start: 0; }

.section-head { display: grid; gap: 14px; max-width: 760px; margin-block-end: clamp(32px, 4vw, 52px); }
.section-head--split { max-width: none; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 40px; }
.section-head--sticky { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.section-title { font-size: clamp(1.9rem, 3.4vw, 3rem); font-weight: 900; line-height: 1.3; max-width: 22em; letter-spacing: 0; }
.section-title--light { color: var(--paper); }
.section-lead { font-size: 1.04rem; line-height: 1.95; color: var(--muted); max-width: 46em; margin: 0; }
.section--ink .section-lead, .section--dark-deep .section-lead, .section-head--light .section-lead { color: var(--on-dark-muted); }
.section-lead--light { color: var(--on-dark-muted); }
.section--ink .section-head .eyebrow, .section--dark-deep .eyebrow { color: var(--accent-hi); }

/* Hero */
.hero {
  position: relative; overflow: hidden; background: var(--petrol-900); color: var(--paper);
  padding-block: clamp(48px, 7vw, 96px) 0;
  background-image:
    linear-gradient(to left, rgba(244, 239, 228, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244, 239, 228, .05) 1px, transparent 1px);
  background-size: 96px 96px;
  background-position: 0 0;
}
.hero::after {
  content: ""; position: absolute; inset-inline-start: -10%; top: -20%; width: 60%; height: 140%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(43, 182, 201, .10), transparent);
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; min-height: min(78vh, 760px); }
.hero__eyebrow { color: var(--on-dark-muted); font-weight: 600; font-size: .92rem; margin-block-end: 22px; }
.hero__title {
  font-size: clamp(2.5rem, 5.6vw, 5.1rem); font-weight: 900; line-height: 1.22; letter-spacing: 0; margin-block-end: 26px;
}
.hero__line { display: block; }
.hero__title em {
  font-style: normal; color: var(--paper); position: relative; z-index: 0; white-space: nowrap;
}
.hero__title em::after {
  content: ""; position: absolute; inset-inline: -4px; bottom: .08em; height: .32em; z-index: -1;
  background: var(--accent); opacity: .92;
}
.hero__lead { font-size: 1.08rem; line-height: 2; color: var(--on-dark-muted); max-width: 35em; margin-block-end: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-end: 18px; }
.hero__actions .btn--ghost { border-color: rgba(244, 239, 228, .5); color: var(--paper); }
.hero__actions .btn--ghost:hover { background: var(--paper); color: var(--petrol-900); }
.hero__tertiary { font-size: .95rem; color: var(--on-dark-muted); margin-block-end: 36px; }
.hero__tertiary .link-arrow { color: var(--accent-hi); min-height: 0; padding: 0; font-size: inherit; }
.hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border-top: 1px solid var(--line-dark); padding-block-start: 22px; max-width: 560px; }
.hero__facts dt { font-size: .82rem; color: var(--on-dark-muted); margin-block-end: 4px; }
.hero__facts dd { font-size: 1.25rem; font-weight: 800; color: var(--paper); font-variant-numeric: tabular-nums; }

.hero__art { position: relative; justify-self: center; width: 100%; max-width: 560px; }
.hero__sheet {
  position: relative; width: 100%; aspect-ratio: 1 / 1.02;
  background: radial-gradient(120% 90% at 30% 20%, rgba(244, 239, 228, .07), transparent 60%);
  border: 1px solid rgba(244, 239, 228, .08);
}
.hero-piece { position: absolute; aspect-ratio: var(--ar, 1.8); box-shadow: 0 28px 40px -22px rgba(0, 0, 0, .8); transition: transform .8s var(--ease); }
.hero-piece > .mock { width: 100%; height: 100%; }
.hero-piece--flyer { --ar: .707; width: 44%; inset-block-start: 6%; inset-inline-end: 8%; transform: rotate(3deg); }
.hero-piece--card { --ar: 1.8; width: 45%; inset-inline-start: 6%; inset-block-end: 22%; transform: rotate(-6deg); }
.hero-piece--card-back { --ar: 1.8; width: 45%; inset-inline-start: 22%; inset-block-end: 10%; transform: rotate(4deg); }
.hero-piece--label { --ar: 1; width: 17%; inset-inline-end: 12%; inset-block-end: 10%; transform: rotate(8deg); }
.hero-piece--flyer:hover, .hero-piece--card:hover, .hero-piece--card-back:hover, .hero-piece--label:hover { transform: none; }
.hero-spec {
  position: absolute; inset-block-start: 6%; inset-inline-start: 4%; width: 36%; padding: 14px 16px; background: rgba(5, 20, 24, .9);
  border: 1px solid rgba(244, 239, 228, .18); font-family: var(--mono); direction: ltr; font-size: .72rem; color: var(--paper);
  box-shadow: var(--shadow-lift); text-align: start; border-radius: 2px;
}
.hero-spec__row { display: flex; justify-content: space-between; gap: 10px; padding-block: 6px; border-bottom: 1px dashed rgba(244, 239, 228, .18); margin: 0; }
.hero-spec__row span { color: var(--on-dark-muted); }
.hero-spec__row b { font-weight: 500; color: #fff; }
.hero-spec__swatches { display: flex; gap: 6px; margin-block-start: 10px; }
.hero-spec__swatches i { width: 18px; height: 18px; display: block; border-radius: 50%; border: 1px solid rgba(244, 239, 228, .3); }
.hero__caption { font-size: .8rem; color: var(--on-dark-muted); margin-block-start: 12px; text-align: center; }

.crop { position: absolute; width: 22px; height: 22px; pointer-events: none; }
.crop::before, .crop::after { content: ""; position: absolute; background: rgba(244, 239, 228, .6); }
.crop::before { width: 100%; height: 1px; }
.crop::after { width: 1px; height: 100%; }
.crop--tl { inset-block-start: -12px; inset-inline-start: -12px; }
.crop--tr { inset-block-start: -12px; inset-inline-end: -12px; }
.crop--bl { inset-block-end: -12px; inset-inline-start: -12px; }
.crop--br { inset-block-end: -12px; inset-inline-end: -12px; }
.crop--tl::before, .crop--tr::before, .crop--bl::before, .crop--br::before { }
.crop--tl::before { inset-block-start: 11px; inset-inline-start: 0; }
.crop--tl::after { inset-inline-start: 11px; inset-block-start: 0; }
.crop--tr::before { inset-block-start: 11px; inset-inline-end: 0; }
.crop--tr::after { inset-inline-end: 11px; inset-block-start: 0; }
.crop--bl::before { inset-block-end: 11px; inset-inline-start: 0; }
.crop--bl::after { inset-inline-start: 11px; inset-block-end: 0; }
.crop--br::before { inset-block-end: 11px; inset-inline-end: 0; }
.crop--br::after { inset-inline-end: 11px; inset-block-end: 0; }

.ticker { margin-block-start: clamp(56px, 7vw, 96px); border-block: 1px solid var(--line-dark); background: var(--petrol-950); overflow: hidden; }
.ticker__track { display: flex; width: max-content; gap: 0; animation: ticker 48s linear infinite; }
.ticker__track span { padding: 16px 28px; font-size: .95rem; font-weight: 700; color: var(--on-dark-muted); white-space: nowrap; position: relative; }
.ticker__track span::after { content: "◆"; position: absolute; inset-inline-end: -4px; color: var(--accent-hi); font-size: .55rem; top: 50%; transform: translateY(-50%); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(50%); } }
[dir="rtl"] .ticker__track { animation-name: ticker-rtl; }
@keyframes ticker-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* Catalog */
.catalog-tools { display: grid; gap: 18px; margin-block-end: 32px; }
.catalog-tools__row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 16px; align-items: end; }
.catalog-tools__count { font-size: .92rem; color: var(--muted); font-weight: 600; margin: 0; white-space: nowrap; align-self: center; }
.catalog-tools__count--light { color: var(--on-dark-muted); margin-block: 22px 26px; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.product-card {
  display: flex; flex-direction: column; background: #FBF8F1; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); border-color: rgba(13, 43, 51, .3); }
.product-card__media { position: relative; display: block; width: 100%; padding: 0; }
.product-card__media .mock-holder { aspect-ratio: 4 / 3; background: linear-gradient(160deg, #EFE8D8, #E3DAC5); }
.product-card__media .tag { position: absolute; inset-block-start: 12px; inset-inline-start: 12px; }
.product-card__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 20px; flex: 1; }
.product-card__cat { font-size: .8rem; color: var(--accent-deep); font-weight: 700; margin: 0; }
.product-card__name { font-size: 1.22rem; font-weight: 900; }
.product-card__name .link-plain { text-align: start; }
.product-card__desc { font-size: .92rem; color: var(--muted); line-height: 1.85; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product-card__foot { margin-block-start: auto; padding-block-start: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px dashed var(--line); }
.product-card__price { margin: 0; font-size: .9rem; line-height: 1.5; }
.product-card__price strong { font-size: 1rem; font-variant-numeric: tabular-nums; }
.tag { display: inline-block; padding: 4px 10px; font-size: .75rem; font-weight: 800; border-radius: 2px; background: var(--paper); color: var(--petrol-800); box-shadow: 0 2px 10px -6px rgba(0,0,0,.4); }
.tag--accent { background: var(--accent); color: #fff; }
.empty-state { text-align: center; padding: 48px 16px; border: 1px dashed var(--line); border-radius: var(--radius); margin-block-start: 20px; }
.empty-state--light { border-color: var(--line-dark); color: var(--on-dark-muted); }
.empty-state--compact { padding: 26px 16px; margin-block: 16px; }
.empty-state__title { font-weight: 800; font-size: 1.1rem; margin-block-end: 8px; }
.empty-state__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-block-start: 16px; }

/* Configurator */
.cfg-tabs { display: flex; gap: 10px; margin-block-end: 26px; flex-wrap: wrap; }
.cfg-tab {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 58px; padding: 10px 18px; min-width: 180px;
  border: 1px solid var(--line-dark); border-radius: var(--radius-s); text-align: start; color: var(--paper);
  transition: border-color .2s, background-color .2s;
}
.cfg-tab:hover { border-color: rgba(244, 239, 228, .5); }
.cfg-tab[aria-pressed="true"] { background: var(--paper); color: var(--petrol-900); border-color: var(--paper); }
.cfg-tab__name { font-weight: 900; font-size: 1.05rem; }
.cfg-tab__meta { font-size: .8rem; opacity: .7; }

.cfg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.cfg__stage-col { display: grid; gap: 22px; position: sticky; top: calc(var(--header-h) + 20px); }
.cfg-stage {
  background: var(--petrol-900); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; position: relative;
  background-image: linear-gradient(to left, rgba(244, 239, 228, .04) 1px, transparent 1px), linear-gradient(to bottom, rgba(244, 239, 228, .04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.cfg-canvas { position: relative; min-height: 360px; display: grid; place-items: center; padding: 44px 28px 52px; }
.pv {
  position: relative; box-shadow: var(--shadow-lift); transition: width .45s var(--ease), height .45s var(--ease), border-radius .3s;
  background: var(--mock-bg, #FBFAF6); overflow: hidden; isolation: isolate;
}
.pv .pv-face { position: absolute; inset: 0; }
.pv .pv-face > .mock { width: 100%; height: 100%; }
.pv-finish { position: absolute; inset: 0; pointer-events: none; z-index: 2; mix-blend-mode: normal; transition: opacity .4s; }
.pv-spot { position: absolute; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .4s; }
.pv-grain { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .18; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.pv[data-paper="craft"] .pv-grain { opacity: .42; }
.pv[data-paper="silk"] .pv-grain { opacity: .08; }
.pv[data-finish="matte"] .pv-finish, .pv[data-finish="laminate"] .pv-finish { background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(0,0,0,.05)); opacity: 1; }
.pv[data-finish="gloss"] .pv-finish {
  opacity: 1; background: linear-gradient(118deg, transparent 18%, rgba(255,255,255,.42) 34%, rgba(255,255,255,0) 46%, transparent 62%, rgba(255,255,255,.22) 78%, transparent 88%);
  mix-blend-mode: soft-light;
}
.pv[data-finish="gloss"] .pv-finish::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.08); }
.pv[data-finish="softtouch"] .pv-finish { opacity: 1; background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(0,0,0,.08)); }
.pv[data-finish="softtouch"] .pv-finish::after { content: ""; position: absolute; inset: 0; opacity: .5; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='s'><feTurbulence type='fractalNoise' baseFrequency='.5' numOctaves='3'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 .25 0'/></filter><rect width='100%' height='100%' filter='url(%23s)'/></svg>"); }
.pv[data-finish="spotuv"] .pv-spot { opacity: 1; inset-block-start: 14%; inset-inline-end: 12%; width: 30%; height: 26%;
  background: radial-gradient(ellipse at 35% 30%, rgba(255,255,255,.95), rgba(255,255,255,.35) 42%, rgba(255,255,255,0) 72%); mix-blend-mode: screen; border-radius: 4px; }
.pv[data-corner="rounded"] { border-radius: var(--r, 10px); }
.pv[data-corner="rounded"] .pv-face { border-radius: var(--r, 10px); overflow: hidden; }
.pv[data-corner="circle"] { border-radius: 50%; }
.pv[data-corner="circle"] .pv-face { border-radius: 50%; overflow: hidden; }
.pv .mock { box-shadow: none; }
.pv-blank { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 6px; background: #EDE8DC; color: #6A6F70; font-weight: 700; }
.pv-blank small { font-weight: 500; font-size: .8rem; }
.dim { position: absolute; font-size: .8rem; color: var(--on-dark-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dim--w { inset-block-end: 18px; inset-inline: 0; text-align: center; }
.dim--w::before, .dim--w::after { content: ""; display: inline-block; width: 32%; height: 1px; background: rgba(244,239,228,.35); vertical-align: middle; margin-inline: 10px; }
.dim--h { inset-inline-end: 12px; top: 50%; transform: translateY(-50%) rotate(-90deg); transform-origin: center; }
.dim--h { inset-inline-end: 4px; }
.cfg-stage__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line-dark); flex-wrap: wrap; }
.cfg-stage__caption { margin: 0; font-size: .92rem; color: var(--paper); }
.cfg-stage__caption .muted { color: var(--on-dark-muted); }
.cfg-stage__bar .btn { gap: 6px; }
.cfg-stage__bar .icon { width: 18px; height: 18px; }

.cfg-summary { background: var(--petrol-950); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 22px; color: var(--paper); }
.cfg-summary__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-block-end: 14px; }
.cfg-summary h3 { font-size: 1.2rem; font-weight: 900; }
.cfg-summary .muted { color: var(--on-dark-muted) !important; }
.spec-list { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.spec-list > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line-dark); }
.spec-list dt { color: var(--on-dark-muted); font-size: .9rem; }
.spec-list dd { font-weight: 700; font-size: .95rem; line-height: 1.7; }
.spec-list--compact > div { padding: 9px 0; }
.dialog .spec-list { border-top-color: var(--line); }
.dialog .spec-list > div { border-bottom-color: var(--line); }
.dialog .spec-list dt { color: var(--muted); }
.cfg-price { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-block: 20px 6px; padding-block-start: 16px; border-top: 1px solid var(--line-dark); }
.cfg-price__label { margin: 0; color: var(--on-dark-muted); font-size: .92rem; }
.cfg-price__value { margin: 0; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 900; font-variant-numeric: tabular-nums; color: var(--paper); line-height: 1.2; }
.cfg-price__value.flash { animation: flash .6s var(--ease); }
@keyframes flash { 0% { color: var(--accent-hi); transform: scale(1.03); } 100% { color: var(--paper); transform: none; } }
.breakdown { margin: 8px 0 0; display: grid; gap: 6px; font-size: .9rem; }
.breakdown li { display: flex; justify-content: space-between; gap: 10px; font-variant-numeric: tabular-nums; color: var(--on-dark-muted); }
.cfg-summary #cfg-breakdown > p { color: var(--on-dark-muted); }
.cfg-summary .field-msg { color: #FF9C8C; margin-block: 10px; }
.cfg-summary .field-msg:not(.is-error) { color: var(--on-dark-muted); }
.cfg-actions { display: grid; gap: 10px; margin-block-start: 18px; }
.cfg-summary .btn--ghost-light { min-height: 46px; }
.cfg-summary .link-btn--light { justify-self: center; }

.cfg-form { display: grid; gap: 26px; }
.cfg-group { display: grid; gap: 12px; }
.cfg-group__title { font-size: .95rem; font-weight: 800; color: var(--paper); margin-block-end: 2px; padding: 0; float: none; width: 100%; }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.opt-grid--qty { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.opt { position: relative; display: block; cursor: pointer; }
.opt input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 2;
  appearance: none; -webkit-appearance: none;
}
.opt input:disabled { cursor: not-allowed; }
.opt__box {
  display: flex; flex-direction: column; gap: 4px; min-height: 60px; padding: 12px 14px 12px 40px;
  border: 1.5px solid rgba(244, 239, 228, .2); border-radius: var(--radius-s); background: rgba(244, 239, 228, .03);
  transition: border-color .2s, background-color .2s, transform .15s; position: relative;
}
.opt__box::before {
  content: ""; position: absolute; inset-block-start: 14px; inset-inline-end: 12px; width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid rgba(244, 239, 228, .45); transition: all .2s;
}
.opt:hover .opt__box { border-color: rgba(244, 239, 228, .55); }
.opt__label { font-weight: 800; font-size: .95rem; line-height: 1.6; color: var(--paper); }
.opt__note { font-size: .8rem; line-height: 1.6; color: var(--on-dark-muted); }
.opt input:checked ~ .opt__box, .opt.is-selected .opt__box { border-color: var(--accent-hi); background: rgba(217, 70, 43, .14); }
.opt input:checked ~ .opt__box::before, .opt.is-selected .opt__box::before { background: var(--accent-hi); border-color: var(--accent-hi); box-shadow: inset 0 0 0 3px var(--petrol-900); }
.opt input:focus-visible ~ .opt__box { outline: 3px solid var(--focus-dark); outline-offset: 2px; }
.opt.is-unavailable { opacity: .42; }
.opt.is-unavailable .opt__box { border-style: dashed; }
.opt__unavail { display: block; position: relative; font-size: .76rem; color: #FFB3A6; margin-block-start: 4px; }
.opt__unavail[hidden] { display: none !important; }
.opt-grid--qty .opt__box { min-height: 52px; padding: 10px 12px; align-items: center; justify-content: center; text-align: center; }
.opt-grid--qty .opt__box::before { display: none; }
.opt-grid--qty .opt__label { font-variant-numeric: tabular-nums; }
.cfg-hint { font-size: .9rem; line-height: 1.85; color: var(--on-dark-muted); border-inline-start: 2px solid var(--accent-hi); padding-inline-start: 14px; margin: 0; }
.cfg-hint:empty { display: none; }
.cfg-hint strong { color: var(--paper); }
.custom-dims { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-block-start: 12px; padding: 14px; border: 1px dashed rgba(244, 239, 228, .3); border-radius: var(--radius-s); }
.custom-dims .field-msg { grid-column: 1 / -1; color: var(--on-dark-muted); font-weight: 500; }
.custom-dims .field-msg.is-error { color: #FFA999; font-weight: 700; }
.custom-dims .field label { color: var(--paper); }
.custom-dims input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid rgba(244, 239, 228, .4); border-radius: var(--radius-s); background: var(--petrol-950); color: var(--paper); font-variant-numeric: tabular-nums; font-size: 1rem; }
.custom-dims input:focus { outline: 2px solid var(--focus-dark); outline-offset: 0; border-color: transparent; }
.custom-dims input[aria-invalid="true"] { border-color: #FFA999; }
.custom-dims .field label { font-size: .9rem; }

.cfg-mini { display: none; }

/* Portfolio */
.sample-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.sample__btn { display: flex; flex-direction: column; width: 100%; text-align: start; border-radius: var(--radius); overflow: hidden; background: #171F22; border: 1px solid var(--line-dark); transition: transform .3s var(--ease), border-color .3s; height: 100%; }
.sample__btn:hover { transform: translateY(-3px); border-color: rgba(244, 239, 228, .4); }
.sample__media { display: block; position: relative; aspect-ratio: 5 / 4; background: linear-gradient(170deg, #1F2D31, #14202300); container-type: size; overflow: hidden; }
.sample__media { background-color: #1D2B2F; }
.sample__meta { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 18px; }
.sample__cat { font-size: .78rem; color: var(--accent-hi); font-weight: 800; }
.sample__title { font-weight: 800; font-size: 1rem; line-height: 1.6; color: var(--paper); }

.lb { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.lb__media { position: relative; aspect-ratio: 1 / 1; container-type: size; background: #1D2B2F; border-radius: var(--radius); display: grid; place-items: center; overflow: hidden; }
.lb__media > .mock { }
.lb__title { font-size: 1.6rem; font-weight: 900; margin-block: 4px 6px; }
.lb__client { color: var(--accent-deep); font-weight: 700; margin-block-end: 14px; }
.lb__count { text-align: center; color: var(--muted); font-size: .9rem; margin-block: 18px 0; }
.lb__nav { display: flex; justify-content: space-between; gap: 12px; margin-block-start: 22px; padding-block-start: 16px; border-top: 1px solid var(--line); }
.lb__nav .btn { min-height: 46px; }

/* Guide */
.guide { display: grid; gap: 18px; }
.guide__tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); }
.guide-tab {
  min-height: 52px; padding: 10px 22px; font-weight: 800; color: var(--muted); position: relative; border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.guide-tab[aria-selected="true"] { color: var(--petrol-900); border-bottom-color: var(--accent); }
.guide-tab:hover { color: var(--petrol-900); }
.guide__options { display: flex; flex-wrap: wrap; gap: 10px; }
.guide-opt { min-height: 46px; padding: 10px 18px; border: 1.5px solid var(--petrol-800); border-radius: 999px; font-weight: 700; transition: all .2s; }
.guide-opt[aria-pressed="true"] { background: var(--petrol-800); color: var(--paper); }
.guide-opt:hover:not([aria-pressed="true"]) { background: var(--paper-2); }
.guide__panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 48px); align-items: center; background: #FBF8F1; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); min-height: 300px; }
.guide__panel:focus-visible { outline-offset: 4px; }
.guide-detail__intro { font-size: .9rem; color: var(--muted); margin-block-end: 6px; }
.guide-detail__title { font-size: 1.6rem; font-weight: 900; margin-block-end: 10px; }
.guide-detail__note { padding: 12px 14px; background: var(--paper-2); border-radius: var(--radius-s); font-size: .95rem; line-height: 1.85; }
.guide-detail__text .btn { margin-block-start: 10px; }
.guide-detail__text p:last-of-type { margin-block-end: 1.1em; }
.guide-detail__swatch { display: grid; place-items: center; min-height: 260px; }
.swatch { position: relative; width: min(100%, 360px); aspect-ratio: 1.6; border-radius: var(--radius-s); overflow: hidden; display: grid; place-items: center; box-shadow: var(--shadow-lift); }
.swatch--paper { background: var(--paper); border: 1px solid var(--line); }
.swatch--paper { background: var(--paper); }
.swatch--paper::before { content: ""; position: absolute; inset: 0; background: var(--paper); }
.swatch__ink { position: relative; font-size: 2rem; font-weight: 900; color: var(--petrol-900); }
.swatch__ink--sub { font-size: .9rem; font-weight: 600; margin-block-start: 6px; color: var(--muted); }
.swatch--paper .swatch__ink { font-size: 1.8rem; }
.swatch--finish { background: var(--petrol-800); flex-direction: column; color: var(--paper); }
.swatch--finish .swatch__ink { color: var(--paper); }
.swatch--finish .swatch__ink--sub { color: var(--on-dark-muted); }
.swatch--finish[data-style="matte"]::after, .swatch--finish[data-style="soft"]::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(0,0,0,.2)); }
.swatch--finish[data-style="soft"]::after { background-image: radial-gradient(rgba(255,255,255,.15) 1px, transparent 1px); background-size: 4px 4px; background-color: rgba(0,0,0,.1); }
.swatch--finish[data-style="gloss"]::after { content: ""; position: absolute; inset: 0; background: linear-gradient(118deg, transparent 22%, rgba(255,255,255,.5) 36%, transparent 50%, transparent 72%, rgba(255,255,255,.3) 82%, transparent 90%); }
.swatch--finish[data-style="uv"]::before { content: ""; position: absolute; inset: 22% 18% 26% 40%; background: radial-gradient(ellipse at 35% 30%, #fff, rgba(255,255,255,.4) 45%, transparent 75%); border-radius: 6px; z-index: 0; }
.swatch--finish[data-style="uv"] .swatch__ink { color: var(--petrol-900); }
.swatch--finish .swatch__ink { position: relative; z-index: 1; }
.swatch--finish[data-style="uv"] { background: var(--petrol-700); }
.swatch--corner { background: var(--paper-2); }
.swatch--corner span { width: 46%; aspect-ratio: 1.8; background: var(--petrol-800); box-shadow: var(--shadow-soft); }
.swatch--corner[data-corner="rounded"] span { border-radius: 14px; }
.swatch--corner[data-corner="square"] span { border-radius: 0; }

/* Process */
.process { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; position: relative; counter-reset: step; }
.process::before { content: ""; position: absolute; inset-inline: 0; top: 22px; height: 1px; background: linear-gradient(to left, transparent, var(--accent-hi) 20%, rgba(244,239,228,.25) 40%, rgba(244,239,228,.25) 100%); }
.step { position: relative; padding-inline-end: 22px; display: grid; gap: 12px; align-content: start; }
.step__no {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--petrol-800); border: 1.5px solid var(--accent-hi);
  font-weight: 900; font-size: 1rem; color: var(--paper); z-index: 1; font-variant-numeric: tabular-nums;
}
.step__title { font-size: 1.12rem; font-weight: 900; color: var(--paper); line-height: 1.5; min-height: 3em; }
.step__text { font-size: .92rem; line-height: 1.9; color: var(--on-dark-muted); margin: 0; padding-inline-end: 12px; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.service {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px 24px 24px; background: #FBF8F1; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); transition: border-color .3s, transform .3s var(--ease);
}
.service:hover { border-color: rgba(13, 43, 51, .35); transform: translateY(-2px); }
.service:first-child { grid-row: span 1; }
.service__no { font-family: var(--font); font-weight: 900; font-size: 2.6rem; color: var(--paper-3); line-height: 1; margin: 0; }
.service__title { font-size: 1.28rem; font-weight: 900; }
.service p { margin: 0; font-size: .95rem; line-height: 1.9; color: var(--petrol-800); }
.service .muted { color: var(--muted) !important; }
.service .link-arrow { margin-block-start: auto; align-self: flex-start; }

/* Quote */
.quote-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.quote-intro { position: sticky; top: calc(var(--header-h) + 24px); }
.usecases { display: grid; gap: 0; margin-block: 24px; border-top: 1px solid var(--line-dark); }
.usecases li { padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
.usecases h3 { font-size: 1.05rem; font-weight: 800; color: var(--paper); margin-block-end: 4px; }
.usecases p { margin: 0; font-size: .94rem; line-height: 1.9; color: var(--on-dark-muted); }
.quote-notice { padding: 16px 18px; border-inline-start: 3px solid var(--accent-hi); background: rgba(244,239,228,.06); font-size: .92rem; line-height: 1.9; color: var(--on-dark-muted); border-radius: 2px; }
.quote-notice strong { color: var(--paper); }

.quote-card {
  min-width: 0;
  background: var(--paper); color: var(--petrol-800); border-radius: var(--radius); box-shadow: var(--shadow-lift); padding: clamp(20px, 3.2vw, 40px);
  position: relative;
}
.quote-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-block-end: 26px; border-bottom: 1px solid var(--line); }
.quote-steps li {
  display: flex; align-items: center; gap: 10px; padding: 12px 6px; font-weight: 700; font-size: .92rem; color: var(--muted);
  border-bottom: 3px solid transparent; margin-bottom: -1px; cursor: default; min-width: 0;
}
.quote-steps li[data-goto-step] { cursor: pointer; }
.quote-steps li span {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; flex: none;
}
.quote-steps li.is-active { color: var(--petrol-900); border-bottom-color: var(--accent); }
.quote-steps li.is-active span { background: var(--petrol-800); border-color: var(--petrol-800); color: var(--paper); }
.quote-steps li.is-done span { background: var(--ok); border-color: var(--ok); color: #fff; }
.quote-form { display: block; }
.quote-step { display: grid; gap: 18px; min-width: 0; }
.quote-step__legend { font-size: 1.3rem; font-weight: 900; margin-block-end: 6px; padding: 0; }
.quote-step__legend:focus { outline: none; }
.quote-card .field label, .quote-card .field-label { color: var(--petrol-900); }
.radio-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.radio-card { position: relative; display: block; cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.radio-card span {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 64px; padding: 10px; border: 1.5px solid #B9B09A; border-radius: var(--radius-s);
  font-weight: 700; font-size: .92rem; line-height: 1.6; background: #FFFDF8; transition: all .2s;
}
.radio-card input:checked + span { border-color: var(--petrol-800); background: var(--petrol-800); color: var(--paper); }
.radio-card input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.dropzone {
  display: grid; justify-items: center; gap: 8px; text-align: center; padding: 26px 18px; border: 1.5px dashed #9C937C; border-radius: var(--radius-s); background: #FFFDF8;
  transition: border-color .2s, background-color .2s;
}
.dropzone.is-dragover { border-color: var(--accent); background: #FFF3EE; }
.dropzone p { margin: 0; font-size: .95rem; }
.dropzone .btn { margin-block-start: 6px; }
.file-card { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); background: #fff; margin-block-start: 10px; }
.file-card__thumb { width: 48px; height: 48px; flex: none; background: var(--paper-2); border-radius: 2px; display: grid; place-items: center; overflow: hidden; }
.file-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-card__ext { font-family: var(--mono); font-weight: 700; font-size: .8rem; color: var(--petrol-800); }
.file-card__info { display: grid; gap: 2px; min-width: 0; flex: 1; font-size: .95rem; }
.file-card__info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-card .link-btn { white-space: nowrap; }
.field-foot { margin-block-start: 0; }
.review { margin-block-start: 6px; padding: 18px; background: var(--paper-2); border-radius: var(--radius-s); }
.review__title { font-size: 1rem; font-weight: 900; margin-block-end: 8px; }
.review__list > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.review__list dt { color: var(--muted); }
.review__list dd { font-weight: 700; overflow-wrap: anywhere; }
.quote-actions { display: flex; gap: 10px; justify-content: space-between; margin-block-start: 28px; padding-block-start: 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.quote-actions .btn { min-width: 150px; }
.quote-actions .btn--ghost-light { border-color: var(--petrol-800); color: var(--petrol-800); }
.quote-actions .btn--ghost-light:hover { background: var(--petrol-800); color: var(--paper); }
.quote-actions #q-next, .quote-actions #q-submit { margin-inline-start: auto; }
.quote-done { margin-block-start: 6px; }

.confirm { display: grid; gap: 14px; text-align: start; }
.confirm__badge { width: 56px; height: 56px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 1.6rem; font-weight: 900; margin: 0; }
.confirm h2, .confirm h3 { font-size: 1.5rem; font-weight: 900; }
.confirm__lead { margin: 0; color: var(--muted); font-size: .96rem; }
.confirm__ref { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; background: var(--petrol-800); color: var(--paper); border-radius: var(--radius-s); }
.confirm__ref .muted { color: var(--on-dark-muted) !important; }
.confirm__code { font-family: var(--mono); font-size: 1.3rem; letter-spacing: .08em; color: #fff; }
.confirm__ref .link-btn { color: var(--accent-hi); margin-inline-start: auto; }
.confirm__rows { display: grid; gap: 0; }
.confirm__rows > div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .94rem; }
.confirm__rows dt { color: var(--muted); }
.confirm__rows dd { font-weight: 700; overflow-wrap: anywhere; }
.confirm__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-block-start: 6px; }
.confirm--inline { padding: 0; }
.quote-done .confirm__actions .btn { min-width: 140px; }
.quote-done .confirm__actions .btn--ghost { border-color: var(--petrol-800); color: var(--petrol-800); }
.confirm__actions .btn--primary { min-width: 140px; }
dialog .confirm h2 { font-size: 1.45rem; }
.drawer__title.sr { font-size: 1rem; }

/* Cart */
.cart-list { display: grid; gap: 14px; margin-block: 16px; }
.cart-item { padding: 16px; background: #FBF8F1; border: 1px solid var(--line); border-radius: var(--radius-s); }
.cart-item__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-block-end: 8px; }
.cart-item__head strong { font-size: 1.05rem; }
.cart-item__specs { display: grid; gap: 4px; margin-block-end: 10px; }
.cart-item__specs > div { display: grid; grid-template-columns: 6.8rem minmax(0,1fr); gap: 8px; font-size: .86rem; line-height: 1.6; }
.cart-item__specs dt { color: var(--muted); }
.cart-item__specs dd { font-weight: 600; }
.cart-item__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-block-start: 10px; border-top: 1px dashed var(--line); }
.cart-item__price { font-weight: 900; font-variant-numeric: tabular-nums; }
.cart-foot { position: sticky; bottom: 0; background: var(--paper); padding-block: 16px 4px; border-top: 1px solid var(--line); margin-top: 8px; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-block-end: 12px; font-weight: 700; }
.cart-total strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.cart-actions { display: grid; gap: 8px; }
.cart-actions .link-btn { justify-self: center; }
.cart-actions .btn.is-loading::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Trust */
.trust-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.trust { display: grid; gap: 0; border-top: 1px solid var(--line); }
.trust__item { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 4px 18px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.trust__mark { grid-row: span 2; color: var(--accent); font-size: .9rem; letter-spacing: 3px; padding-block-start: 6px; font-weight: 900; }
.trust__item h3 { font-size: 1.15rem; font-weight: 900; }
.trust__item p { margin: 0; color: var(--muted); line-height: 1.95; font-size: .97rem; }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 18px 4px; list-style: none; cursor: pointer;
  font-weight: 800; font-size: 1.05rem; line-height: 1.6; transition: color .2s;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--accent-deep); }
.faq__icon { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--paper-2); transition: transform .3s var(--ease), background-color .3s; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; inset: 50% auto auto 50%; background: var(--petrol-800); transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.faq__icon::before { width: 12px; height: 2px; }
.faq__icon::after { width: 2px; height: 12px; }
.faq__item[open] .faq__icon { background: var(--petrol-800); transform: rotate(180deg); }
.faq__item[open] .faq__icon::before, .faq__item[open] .faq__icon::after { background: var(--paper); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon::before { transform: translate(-50%, -50%); }
.faq__a { padding: 0 4px 22px; color: var(--muted); line-height: 2; max-width: 46em; animation: faq-in .3s var(--ease); }
.faq__a p { margin: 0; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.faq__q:focus-visible { outline-offset: -3px; }

/* Final CTA */
.final-cta {
  background: var(--accent); color: #fff; position: relative; overflow: hidden; padding-block: clamp(72px, 9vw, 120px);
}
.final-cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .14;
  background-image: linear-gradient(to left, #fff 1px, transparent 1px), linear-gradient(to bottom, #fff 1px, transparent 1px);
  background-size: 64px 64px;
}
.final-cta__inner { position: relative; z-index: 1; display: grid; gap: 14px; max-width: 900px; }
.final-cta .eyebrow { color: #FFE3DC; margin: 0; }
.final-cta__title { font-size: clamp(2.2rem, 5vw, 4.2rem); font-weight: 900; line-height: 1.3; }
.final-cta__title em { font-style: normal; background: var(--petrol-900); color: #fff; padding-inline: .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.final-cta__lead { font-size: 1.08rem; line-height: 2; max-width: 36em; color: #FFF0EB; margin: 0; }
.final-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 14px; }
.final-cta .btn--accent { background: var(--petrol-900); box-shadow: none; }
.final-cta .btn--accent:hover { background: var(--petrol-950); }
.final-cta .btn--ghost-light { border-color: rgba(255,255,255,.7); }
.final-cta .btn--ghost-light:hover { background: #fff; color: var(--accent-deep); }

/* Footer */
.site-footer { background: var(--petrol-950); color: var(--on-dark-muted); padding-block: 64px 0; font-size: .94rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 36px; padding-block-end: 44px; border-bottom: 1px solid var(--line-dark); }
.site-footer__tag { color: var(--paper); font-weight: 700; margin: 14px 0 6px; }
.site-footer__studio { font-size: .86rem; margin: 0; }
.site-footer__h { font-size: .92rem; color: var(--paper); font-weight: 900; margin-block-end: 14px; }
.site-footer__list { display: grid; gap: 8px; }
.site-footer__list a, .site-footer__list .link-plain { color: var(--on-dark-muted); text-decoration: none; text-align: start; padding: 0; display: inline-block; min-height: 32px; }
.site-footer__list a:hover, .site-footer__list .link-plain:hover { color: var(--paper); text-decoration: underline; }
.site-footer__list--plain li { line-height: 1.8; }
.site-footer__list--plain a { min-height: 0; direction: ltr; unicode-bidi: plaintext; }
.site-footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px 28px; font-size: .84rem; }
.site-footer__notice { color: var(--paper); margin: 0; border-inline-start: 2px solid var(--accent-hi); padding-inline-start: 12px; }
.site-footer__copy { margin: 0; color: var(--on-dark-muted); }
.site-footer .link-plain:focus-visible, .site-footer a:focus-visible, .site-footer button:focus-visible { outline-color: var(--focus-dark); }

/* Sticky CTA (موبایل) */
.sticky-cta {
  position: fixed; inset-inline: 12px; bottom: 12px; z-index: 90; transform: translateY(160%); transition: transform .4s var(--ease); display: none;
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { box-shadow: var(--shadow-lift); min-height: 52px; }

/* 6) نمایش فیزیکی محصولات (Mockup) -------------------------------------- */
.mock-holder { display: block; position: relative; container-type: size; overflow: hidden; }
.mock-holder > .mock { position: absolute; inset: 0; margin: auto; }
.mock-holder > .mock:not(.mock--fill) {
  width: min(74cqw, calc(74cqh * var(--ar, 1))); height: auto; aspect-ratio: var(--ar, 1);
  top: 50%; left: 50%; transform: translate(-50%, -50%); inset: auto;
}
.mock {
  --ar: 1;
  position: relative; container-type: inline-size; background: var(--mock-bg, #FBFAF6); color: var(--mock-ink, #0D2B33);
  box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 22px 30px -20px rgba(5, 20, 24, .55); overflow: hidden; border-radius: 2px;
}
.mock--fill { width: 100%; height: 100%; }
.mock-face { position: absolute; inset: 0; padding: 9cqw; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; }
.mock-mark {
  display: grid; place-items: center; width: 15cqw; height: 15cqw; border-radius: 50%; background: var(--mock-accent); color: var(--mock-bg);
  font-weight: 900; font-size: 8.4cqw; line-height: 1;
}
.mock-name { font-weight: 900; font-size: 7.4cqw; line-height: 1.35; margin-block: 3cqw 2cqw; max-width: 80%; }
.mock-bars { display: grid; gap: 2.2cqw; width: 58%; }
.mock-bars i { display: block; height: 1.7cqw; background: currentColor; opacity: .32; border-radius: 1px; }
.mock-bars i:nth-child(2) { width: 82%; }
.mock-bars i:nth-child(3) { width: 60%; }
.mock-cross { position: absolute; inset-inline-end: 4.5cqw; inset-block-end: 4.5cqw; width: 6cqw; height: 6cqw; opacity: .35; }
.mock-cross::before, .mock-cross::after { content: ""; position: absolute; background: currentColor; }
.mock-cross::before { width: 100%; height: .2cqw; inset-block-start: 50%; }
.mock-cross::after { height: 100%; width: .2cqw; inset-inline-start: 50%; }

/* سبک‌های ویژه بر اساس نوع */
.mock[data-type="card"] .mock-face { justify-content: space-between; }
.mock[data-type="card"] .mock-name { font-size: 9cqw; }
.mock[data-type="card"]::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 100%; height: 6%; background: var(--mock-accent); opacity: .85; }
.mock[data-type="flyer"] .mock-name, .mock[data-type="poster"] .mock-name { font-size: 11cqw; }
.mock[data-type="flyer"]::after { content: ""; position: absolute; inset-inline-end: 0; inset-block-end: 0; width: 48%; height: 18%; background: var(--mock-accent); }
.mock[data-type="poster"] .mock-face { padding: 10cqw 9cqw; }
.mock[data-type="poster"]::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, transparent 0 9cqw, rgba(255,255,255,.07) 9cqw 10cqw); }
.mock[data-type="poster"] .mock-mark { width: 22cqw; height: 22cqw; font-size: 12cqw; background: var(--mock-ink); color: var(--mock-bg); }
.mock[data-type="brochure"]::before, .mock[data-type="folder"]::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, transparent calc(33.33% - .25px), rgba(0,0,0,.09) calc(33.33% - .25px), rgba(0,0,0,.09) 33.33%, transparent 33.33%), linear-gradient(to right, transparent calc(66.66% - .25px), rgba(0,0,0,.09) calc(66.66% - .25px), rgba(0,0,0,.09) 66.66%, transparent 66.66%);
}
.mock[data-type="folder"]::after { content: ""; position: absolute; inset-inline-end: 0; top: 0; width: 30%; height: 14%; background: rgba(0,0,0,.08); }
.mock[data-type="catalog"] .mock-face { padding-inline-start: 14cqw; }
.mock[data-type="catalog"]::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 7cqw; background: var(--mock-accent); }
.mock[data-type="letterhead"] .mock-face { padding: 8cqw; }
.mock[data-type="letterhead"]::before { content: ""; position: absolute; inset-inline: 8cqw; top: 26cqw; height: 0; border-top: 1px dashed rgba(0,0,0,.2); }
.mock[data-type="invoice"]::before { content: ""; position: absolute; inset: 22cqw 8cqw 8cqw; background: repeating-linear-gradient(to bottom, transparent 0 4.8cqw, rgba(0,0,0,.12) 4.8cqw 5.1cqw); }
.mock[data-type="invoice"] .mock-bars { opacity: 1; }
.mock[data-type="stationery"]::before { content: ""; position: absolute; inset-inline-start: 10%; inset-block-end: 12%; width: 56%; height: 58%; background: #F7F2E6; box-shadow: 0 10px 20px -12px rgba(0,0,0,.4); }
.mock[data-type="stationery"]::after { content: ""; position: absolute; inset-inline-end: 8%; inset-block-start: 10%; width: 60%; height: 46%; background: var(--mock-accent); opacity: .18; }
.mock[data-type="envelope"]::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 48%; background: rgba(0,0,0,.035); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.mock[data-type="envelope"] .mock-face { padding-top: 22cqw; }
.mock[data-type="label"] { border-radius: 8cqw; }
.mock[data-type="label"] .mock-face { padding: 10cqw; justify-content: center; align-items: center; text-align: center; }
.mock[data-type="label"] .mock-bars { display: none; }
.mock[data-type="label"] .mock-name { font-size: 9cqw; margin: 0; text-align: center; max-width: 100%; }
.mock[data-type="label"]::after { content: ""; position: absolute; inset: 4cqw; border: .4cqw solid currentColor; opacity: .25; border-radius: 6cqw; }
.mock[data-type="label"] .mock-mark { width: 24cqw; height: 24cqw; font-size: 14cqw; }
.mock[data-type="box"] { border-radius: 2px; }
.mock[data-type="box"]::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 24%; background: rgba(0,0,0,.08); border-bottom: .3cqw solid rgba(0,0,0,.12); }
.mock[data-type="box"] .mock-face { padding-top: 34%; }
.mock[data-type="box"]::after { content: ""; position: absolute; inset: 4cqw; border: .3cqw dashed rgba(0,0,0,.18); }
.mock[data-type="bag"] { border-radius: 2px 2px 3px 3px; }
.mock[data-type="bag"]::before { content: ""; position: absolute; inset-inline-start: 30%; width: 40%; top: -22cqw; height: 40cqw; border: 2.4cqw solid var(--mock-ink); border-bottom: 0; border-radius: 50% 50% 0 0; opacity: .25; }
.mock[data-type="bag"] .mock-face { padding-top: 14cqw; }
.mock[data-type="bag"] .mock-name { font-size: 9cqw; }
.mock[data-type="banner"] .mock-face { flex-direction: row; align-items: center; justify-content: space-between; padding: 6cqw 10cqw; }
.mock[data-type="banner"] .mock-name { font-size: 12cqw; margin: 0; max-width: 60%; }
.mock[data-type="banner"] .mock-bars { display: none; }
.mock[data-type="banner"]::before, .mock[data-type="banner"]::after { content: ""; position: absolute; width: 3cqw; height: 3cqw; border-radius: 50%; background: var(--mock-bg); box-shadow: inset 0 0 0 .4cqw rgba(0,0,0,.25); }
.mock[data-type="banner"]::before { top: 2cqw; inset-inline-start: 2cqw; }
.mock[data-type="banner"]::after { bottom: 2cqw; inset-inline-end: 2cqw; }
.mock[data-type="stand"] .mock-face { padding: 12cqw 10cqw 22cqw; }
.mock[data-type="stand"] .mock-name { font-size: 11cqw; }
.mock[data-type="stand"]::after { content: ""; position: absolute; inset-inline: 22%; bottom: 0; height: 9%; background: rgba(0,0,0,.25); }
.mock[data-type="promo"] { border-radius: 50%; }
.mock[data-type="promo"] .mock-face { align-items: center; justify-content: center; text-align: center; padding: 16cqw; }
.mock[data-type="promo"] .mock-bars { display: none; }
.mock[data-type="promo"] .mock-name { margin: 0; text-align: center; font-size: 9cqw; max-width: 100%; }
.mock[data-type="promo"] .mock-cross { display: none; }
.mock[data-type="promo"]::after { content: ""; position: absolute; inset: 7%; border-radius: 50%; border: .5cqw solid var(--mock-accent); opacity: .7; }
.mock[data-type="promo"] .mock-mark { width: 22cqw; height: 22cqw; font-size: 12cqw; }
.mock[data-type="card"] .mock-cross, .mock[data-type="flyer"] .mock-cross { opacity: .25; }

/* اندازه‌ی نسبت‌ها در حالت‌های مختلف */
.mock[data-type="card"] { --ar: 1.8; }
.mock[data-type="flyer"] { --ar: .707; }
.mock[data-type="brochure"] { --ar: 1.414; }
.mock[data-type="catalog"] { --ar: .707; }
.mock[data-type="poster"] { --ar: .707; }
.mock[data-type="folder"] { --ar: 1.414; }
.mock[data-type="letterhead"] { --ar: .707; }
.mock[data-type="envelope"] { --ar: 1.6; }
.mock[data-type="invoice"] { --ar: .707; }
.mock[data-type="stationery"] { --ar: 1.25; }
.mock[data-type="label"] { --ar: 1.4; }
.mock[data-type="box"] { --ar: 1.15; }
.mock[data-type="bag"] { --ar: .86; }
.mock[data-type="banner"] { --ar: 2.4; }
.mock[data-type="stand"] { --ar: .42; }
.mock[data-type="promo"] { --ar: 1; }

/* نمایش نمونه‌ها در کارت‌ها: نسبت ثابت جلوگیری از جابه‌جایی */
.sample__media .mock:not(.mock--fill), .lb__media .mock:not(.mock--fill) { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(70cqw, calc(70cqh * var(--ar, 1))); height: auto; aspect-ratio: var(--ar, 1); }
.lb__media .mock:not(.mock--fill) { width: min(72cqw, calc(72cqh * var(--ar, 1))); }
.product-card__media .mock-holder { aspect-ratio: 4 / 3; }

/* 6b) جزئیات محصول */
.pd { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.pd__media { position: sticky; top: 8px; }
.pd__media .mock-holder { aspect-ratio: 4 / 4.2; background: linear-gradient(160deg, #EFE8D8, #E0D7C2); border-radius: var(--radius-s); }
.pd__title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 900; margin-block: 2px 10px; }
.pd__lead { color: var(--muted); font-size: 1rem; line-height: 1.95; margin-block-end: 18px; }
.pd__h { font-size: 1rem; font-weight: 900; margin: 22px 0 10px; color: var(--petrol-900); }
.pd__list { display: grid; gap: 6px; }
.pd__list li { position: relative; padding-inline-start: 18px; line-height: 1.8; }
.pd__list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .72em; width: 8px; height: 8px; border: 1.5px solid var(--accent); border-radius: 50%; }
.pd__list--tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pd__list--tags li { padding: 6px 12px; background: var(--paper-2); border-radius: 999px; font-size: .9rem; }
.pd__list--tags li::before { display: none; }
.pd__text { color: var(--petrol-800); line-height: 1.95; font-size: .96rem; }
.pd__price { margin-block: 22px 14px; padding: 14px 16px; background: var(--petrol-800); color: var(--paper); border-radius: var(--radius-s); }
.pd__price p { margin: 0; }
.pd__price .muted { color: var(--on-dark-muted) !important; }
.pd__price strong { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.pd__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pd__related { margin-block-start: 36px; padding-block-start: 22px; border-top: 1px solid var(--line); }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.related-item { display: flex; flex-direction: column; gap: 8px; padding: 10px; background: #FBF8F1; border: 1px solid var(--line); border-radius: var(--radius-s); text-align: start; min-height: 120px; }
.related-item .mock-holder { aspect-ratio: 16 / 10; background: #E9E1CD; border-radius: 2px; }
.related-item:hover { border-color: var(--petrol-800); }
.related-item__name { font-weight: 800; font-size: .95rem; padding-inline: 4px; }

/* 7) واکنش‌گرایی --------------------------------------------------------- */
@media (max-width: 1180px) {
  .primary-nav .primary-nav__list, .primary-nav .nav-link:not(.nav-link--button) { display: none; }
  .primary-nav { margin-inline-start: 0; display: none; }
  .site-header__actions .btn--nav { display: none; }
  .icon-btn--menu { display: inline-grid; }
  .nav-link--button { min-height: 44px; }
  .cat-menu__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sample-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .process::before { display: none; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service:last-child { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero__art { max-width: 520px; margin-inline: auto; }
  .hero-piece--card { inset-block-end: 20%; }
  .section-head--split { grid-template-columns: minmax(0, 1fr); }
  .cfg { grid-template-columns: minmax(0, 1fr); }
  .cfg__stage-col { position: static; }
  .quote-layout, .trust-layout, .faq-layout { grid-template-columns: minmax(0, 1fr); }
  .quote-intro { position: static; }
  .section-head--sticky { position: static; }
  .lb { grid-template-columns: minmax(0, 1fr); }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide__panel { grid-template-columns: minmax(0, 1fr); }
  .guide__panel .guide-detail__swatch { order: -1; min-height: 200px; }
  .pd { grid-template-columns: minmax(0, 1fr); }
  .pd__media { position: static; }
  .pd__media .mock-holder { aspect-ratio: 4 / 3; }
}

@media (max-width: 860px) {
  .catalog-tools__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-tools__count { grid-column: 1 / -1; }
  .sample-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .radio-cards { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .hero { padding-block-start: 36px; }
  .hero__title { font-size: clamp(2.2rem, 10.2vw, 3rem); line-height: 1.28; }
  .hero__lead { font-size: 1rem; line-height: 1.95; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__facts { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
  .hero__facts dd { font-size: 1.02rem; }
  .hero__facts dt { font-size: .74rem; line-height: 1.5; }
  .hero__sheet { aspect-ratio: 1 / 1.05; }
  .hero-spec { width: 42%; inset-inline-start: 2%; inset-block-start: 4%; font-size: .6rem; padding: 10px; }
  .hero-piece--flyer { width: 50%; inset-inline-end: 4%; inset-block-start: 3%; }
  .hero-piece--card { width: 52%; inset-inline-start: 2%; inset-block-end: 24%; }
  .hero-piece--card-back { width: 50%; inset-inline-start: 26%; inset-block-end: 6%; }
  .hero-piece--label { width: 20%; inset-inline-end: 4%; inset-block-end: 6%; }
  .ticker__track span { font-size: .85rem; padding: 12px 18px; }
  .section-title { font-size: clamp(1.7rem, 7.6vw, 2.2rem); }
  .section-head { margin-block-end: 28px; }

  .catalog-tools__row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .catalog-tools__row .field--inline { gap: 4px; }
  .catalog-tools__count { white-space: normal; }
  .product-card__body { padding: 14px 14px 16px; }
  .product-card__name { font-size: 1.05rem; }
  .product-card__desc { display: none; }
  .product-card__foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .product-card__foot .btn { width: 100%; }
  .catalog-grid { gap: 12px; }

  .cfg-canvas { min-height: 300px; padding: 32px 14px 46px; }
  .cfg-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cfg-tab { min-width: 0; }
  .cfg-tab__meta { display: none; }
  .cfg-stage__bar { padding: 12px 14px; }
  .cfg-stage__caption { font-size: .88rem; }
  .cfg-stage__bar .btn { min-height: 40px; }
  .cfg { gap: 22px; }
  .cfg__stage-col { display: contents; }
  .cfg-stage { order: 1; }
  .cfg__controls { order: 2; }
  .cfg-summary { order: 3; }
  .opt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .opt__box { min-height: 58px; padding: 10px 12px 10px 36px; }
  .opt__box::before { inset-inline-end: 10px; inset-block-start: 12px; width: 15px; height: 15px; }
  .opt__note { display: none; }
  .opt-grid--qty { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .spec-list > div { grid-template-columns: 7rem minmax(0,1fr); }
  .cfg-mini {
    position: sticky; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-inline: calc(var(--gutter) * -1); padding: 12px var(--gutter); background: var(--petrol-950); border-top: 1px solid var(--line-dark);
    margin-block-start: 22px; box-shadow: 0 -14px 30px -18px rgba(0,0,0,.6);
  }
  .cfg-mini__info { display: flex; flex-direction: column; min-width: 0; }
  .cfg-mini__name { font-size: .8rem; color: var(--on-dark-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cfg-mini__total { font-size: 1.05rem; font-variant-numeric: tabular-nums; color: var(--paper); }
  .cfg-mini .btn { min-height: 46px; }
  .cfg-mini__info { flex: 1; }
  .cfg-summary #cfg-breakdown { display: none; }

  .sample-grid { gap: 12px; }
  .sample__meta { padding: 12px; }
  .sample__title { font-size: .92rem; }
  .lb__title { font-size: 1.3rem; }
  .lb__media { aspect-ratio: 4 / 3; }

  .guide-tab { flex: 1; padding-inline: 8px; font-size: .95rem; }
  .guide-opt { min-height: 42px; padding: 8px 14px; }
  .guide__panel { padding: 18px; min-height: 0; }
  .swatch { width: 100%; }

  .process { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .step { padding-inline-end: 0; grid-template-columns: 44px minmax(0,1fr); gap: 4px 16px; padding-block: 18px; border-bottom: 1px solid var(--line-dark); position: relative; }
  .step::before { content: ""; position: absolute; inset-inline-start: 21px; top: 62px; bottom: -10px; width: 1px; background: var(--line-dark); }
  .step:last-child::before { display: none; }
  .step__no { grid-row: span 2; }
  .step__title { min-height: 0; font-size: 1.05rem; }
  .step__text { padding-inline-end: 0; }
  .services { grid-template-columns: minmax(0, 1fr); }
  .service:last-child { grid-column: auto; }
  .service { padding: 22px 20px; }

  .quote-card { padding: 18px 16px 22px; border-radius: 4px; }
  .quote-steps li { font-size: .82rem; flex-direction: column; text-align: center; gap: 4px; padding: 10px 2px; }
  .quote-steps li span { width: 26px; height: 26px; font-size: .82rem; }
  .quote-step__legend { font-size: 1.12rem; }
  .quote-actions { gap: 8px; }
  .quote-actions .btn { flex: 1; min-width: 0; min-height: 50px; }
  .quote-actions #q-next, .quote-actions #q-submit { margin-inline-start: 0; flex: 1 1 100%; order: -1; }
  .quote-actions #q-back { flex: 1; }
  .review__list > div { grid-template-columns: 7rem minmax(0,1fr); }
  .dropzone { padding: 20px 14px; }
  .file-card { flex-wrap: wrap; }
  .file-card .link-btn { margin-inline-start: 62px; }

  .trust__item { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 20px 0; }
  .trust__mark { grid-row: auto; padding-block-start: 0; }

  .faq__q { font-size: 1rem; padding-block: 16px; }

  .final-cta__actions .btn { width: 100%; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }

  .sticky-cta { display: block; }
  .toast-region { bottom: 80px; }

  dialog.dialog { max-height: calc(100dvh - 16px); width: calc(100vw - 16px); max-width: calc(100vw - 16px); border-radius: 4px; }
  dialog.dialog .dialog__scroll { max-height: calc(100dvh - 16px); padding: 18px; }
  .pd__media .mock-holder { aspect-ratio: 4 / 3; }
  .pd__actions .btn { flex: 1 1 100%; }
  .lb { gap: 18px; }
  .lb__nav .btn { flex: 1; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .site-header__actions { gap: 0; }
  .site-header__inner { gap: 8px; }
  .site-header__actions .icon-btn { width: 38px; }
  .site-header__actions .search .icon-btn, .site-header__actions .icon-btn--cart { width: 40px; height: 44px; }
  .brand__mark svg { width: 30px; height: 30px; }
  .brand__text strong { font-size: 1.1rem; }
  .search__panel { inset-inline-end: -48px; width: calc(100vw - 24px); }
  .cat-menu { position: fixed; top: var(--header-h); bottom: 0; overflow: auto; }
  .cat-menu__grid { grid-template-columns: minmax(0, 1fr); }
  .cat-menu__item { min-height: 0; padding: 14px; }
}

@media (max-width: 380px) {
  .hero__facts dd { font-size: .92rem; }
  .cfg-tabs { grid-template-columns: minmax(0, 1fr); }
  .opt-grid { grid-template-columns: minmax(0, 1fr); }
  .spec-list > div { grid-template-columns: 6rem minmax(0,1fr); }
  .sample-grid { grid-template-columns: minmax(0, 1fr); }
  .related-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 1500px) {
  :root { --container: 1320px; }
  .hero__title { font-size: 5.6rem; }
}

@media (min-width: 1181px) {
  .icon-btn--menu { display: none; }
}

/* 7b) کاهش حرکت -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .ticker__track { animation: none; }
  .hero-piece { transition: none; }
}
