/* ==================================================================
   بهگر — پروفایل چاپی A4
   همهٔ اندازه‌ها بر پایهٔ cqw است تا برگ در هر پهنایی همان باشد که چاپ می‌شود
   (۱۰۰cqw = پهنای برگ = ۲۱۰ میلی‌متر)
   ================================================================== */
.page-profile { background: #c9d3d9; padding: 0 !important; }
.page-profile main { margin: 0; }

.p-bar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap;
  padding: 12px max(16px, 3vw); background: var(--ink); color: var(--mist);
}
.p-bar__back { color: var(--fog); font-size: .95rem; }
.p-bar__title { margin: 0 auto 0 0; font-family: var(--f-d); font-weight: 700; font-size: 1.6rem; line-height: 1.2; }
.p-bar__title span { font-family: var(--f-t); font-weight: 400; font-size: .9rem; color: var(--fog); }
.p-hint { margin: 18px auto 0; width: min(210mm, 100% - 32px); font-size: .88rem; color: #3e5566; line-height: 1.8; }

.p-sheets { display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 18px 16px 80px; }

.leaf {
  container-type: inline-size;
  position: relative; width: min(210mm, 100%); aspect-ratio: 210 / 297;
  background: var(--paper); color: var(--ink); overflow: hidden;
  box-shadow: 0 24px 60px -28px rgba(2, 34, 58, .55);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.leaf__in { position: absolute; inset: 0; padding: 9cqw 8cqw 10cqw; font-size: 1.85cqw; line-height: 1.9; display: flex; flex-direction: column; }
.leaf__in p { margin: 0 0 1.1em; }
.leaf__foot {
  position: absolute; left: 8cqw; right: 8cqw; bottom: 4.2cqw; display: flex; justify-content: space-between;
  font-size: 1.35cqw; color: var(--slate); border-top: .12cqw solid var(--line); padding-top: 1.2cqw; line-height: 1;
}

.ps-h2 { font-family: var(--f-d); font-weight: 700; font-size: 6.6cqw; line-height: 1.1; margin: 0 0 .45em; }
.ps-h2--small { font-size: 4.6cqw; }
.ps-h2--center { text-align: center; }
.ps-lede { color: var(--slate); max-width: 40em; }

/* جلد */
.ps-cover { background: var(--ink); color: var(--mist); }
.ps-cover .leaf__in { padding: 10cqw 9cqw; }
.ps-cover__kind { color: var(--fog); font-size: 2cqw; margin: 0 !important; }
.ps-cover__name { font-family: var(--f-d); font-weight: 700; font-size: 24cqw; line-height: 1; margin: 0; }
.ps-cover__say { font-family: var(--f-d); font-weight: 600; font-size: 5.6cqw; line-height: 1.2; color: var(--gold-hi); margin: .2em 0 0 !important; }
.ps-cover__mark { position: absolute; left: -6cqw; bottom: 16cqw; width: 70cqw; height: auto; opacity: 1; }
.ps-cover__foot { position: absolute; right: 9cqw; left: 9cqw; bottom: 10cqw; display: flex; flex-wrap: wrap; gap: .4cqw 3cqw; font-size: 1.7cqw; color: var(--fog); border-top: .12cqw solid var(--line-ink); padding-top: 2cqw; }
.ps-cover__foot span { display: inline-flex; align-items: center; gap: 1.2cqw; }
.ps-cover__foot span::before { content: ''; width: 1cqw; height: 1cqw; background: var(--gold); transform: rotate(45deg); }
.ps-cover__site { position: absolute; right: 9cqw; left: 9cqw; bottom: 5cqw; display: flex; justify-content: space-between; font-size: 1.6cqw; color: var(--fog); margin: 0 !important; direction: ltr; }

/* نام */
.ps-about__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 6cqw; align-items: center; }
.ps-about__grid p { color: var(--slate); }
.ps-about__grid p b { color: var(--ink); }
.ps-gar { list-style: none; margin: 0; padding: 0; }
.ps-gar li { display: flex; align-items: baseline; gap: 2cqw; }
.ps-gar__k { flex: 1; font-size: 1.35cqw; color: var(--slate); border-bottom: .15cqw dotted var(--line); line-height: 1; padding-bottom: .6cqw; }
.ps-gar__w { font-family: var(--f-d); font-weight: 700; font-size: 5.6cqw; line-height: 1.12; }
.ps-gar__s { color: var(--gold); }
.ps-gar .is-end .ps-gar__w { color: var(--gold-deep); }
.ps-one { margin-top: auto; background: var(--ink); color: var(--mist); margin-inline: -8cqw; margin-bottom: -2cqw; padding: 6cqw 8cqw 5cqw; }
.ps-one p { color: var(--fog); }
.ps-one__count { color: var(--mist) !important; margin: 0 !important; display: flex; gap: 1cqw 3cqw; flex-wrap: wrap; align-items: baseline; }
.ps-one__count b { font-family: var(--f-d); font-size: 5cqw; line-height: 1; color: var(--gold-hi); margin-inline-start: 1.5cqw; }

/* خدمات */
.ps-strata { list-style: none; margin: 1cqw 0 0; padding: 0; border-top: .15cqw solid var(--ink); }
.ps-layer { display: grid; grid-template-columns: 26cqw 1fr 12cqw; gap: 0 3cqw; border-bottom: .12cqw dashed var(--line); }
.ps-layer__name { grid-column: 1; grid-row: 1; font-family: var(--f-d); font-weight: 700; font-size: 3.3cqw; line-height: 1.2; margin: 0; padding-block: 2.6cqw; }
.ps-layer__body { grid-column: 2; grid-row: 1; padding-block: 2.3cqw 1.1cqw; font-size: 1.58cqw; line-height: 1.8; color: var(--slate); }
.ps-layer__body p { margin: 0 0 .6em; }
.ps-tags { color: var(--ink); font-size: 1.4cqw; }
.ps-layer__core { grid-column: 3; grid-row: 1; position: relative; border-inline: .12cqw solid rgba(3, 45, 75, .35); background-size: 2.4cqw auto; }
.ps-layer__core span { position: absolute; top: 1.4cqw; right: 1cqw; font-size: 1.2cqw; background: var(--paper); padding: .3cqw .7cqw; line-height: 1.2; border: .1cqw solid var(--line); }
.ps-layer:last-child .ps-layer__name { color: var(--gold-deep); }

/* برگزیده‌ها */
.ps-feature .leaf__in { gap: 4cqw; }
.ps-work { flex: 1; display: grid; grid-template-columns: 46cqw 1fr; gap: 4cqw; align-items: center; }
.ps-work + .ps-work { border-top: .12cqw solid var(--line); padding-top: 4cqw; }
.ps-work.is-flip .ps-work__media { order: 2; }
.ps-work__media.mount { padding: 1.4cqw; clip-path: polygon(0 0, 100% 0, 100% 100%, 5cqw 100%, 0 calc(100% - 5cqw)); }
.ps-work__media img, .ps-work__media svg { display: block; width: 100%; height: auto; max-height: 50cqw; object-fit: cover; object-position: top right; }
.ps-work__media svg { aspect-ratio: 800 / 520; }
.ps-work__title { font-family: var(--f-d); font-weight: 700; font-size: 7cqw; line-height: 1; margin: 0; }
.ps-work__meta { font-size: 1.35cqw; color: var(--slate); margin: 1cqw 0 0 !important; }
.ps-work__tag { font-family: var(--f-d); font-weight: 600; font-size: 2.8cqw; line-height: 1.3; color: var(--gold-deep); margin: 1.2cqw 0 1cqw !important; }
.ps-work__sum { font-size: 1.8cqw; color: var(--slate); }
.ps-facts { list-style: none; margin: 0 0 1.6cqw; padding: 0; display: flex; flex-wrap: wrap; gap: .6cqw 2.6cqw; font-size: 1.4cqw; color: var(--slate); }
.ps-facts b { font-family: var(--f-d); font-size: 3.2cqw; color: var(--ink); margin-inline-end: .8cqw; line-height: 1; }
.ps-list { list-style: none; margin: 0; padding: 0; font-size: 1.55cqw; line-height: 1.65; }
.ps-list li { position: relative; padding-inline-start: 2.2cqw; margin-bottom: .5cqw; }
.ps-list li::before { content: ''; position: absolute; right: 0; top: .75em; width: .9cqw; height: .9cqw; background: var(--gold); transform: rotate(45deg); }

/* فهرست */
.ps-table { width: 100%; border-collapse: collapse; font-size: 1.45cqw; line-height: 1.5; }
.ps-table th { text-align: right; font-weight: 500; color: var(--slate); font-size: 1.3cqw; padding: 0 0 1cqw 1.5cqw; border-bottom: .2cqw solid var(--ink); }
.ps-table td { padding: .95cqw 0 .95cqw 1.5cqw; border-bottom: .1cqw solid var(--line); vertical-align: baseline; color: var(--slate); }
.ps-table .ps-table__t { font-family: var(--f-d); font-weight: 600; font-size: 2.15cqw; color: var(--ink); width: 40%; line-height: 1.3; }
.ps-table__y { white-space: nowrap; color: var(--ink) !important; text-align: left; }

/* پایانی */
.ps-last .leaf__in { gap: 4cqw; }
.ps-clients ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6cqw 0; font-family: var(--f-d); font-weight: 600; font-size: 3.1cqw; line-height: 1.45; }
.ps-clients li { display: flex; align-items: center; white-space: nowrap; }
.ps-clients li + li::before { content: ''; width: .9cqw; height: .9cqw; margin-inline: 2cqw; background: var(--gold); transform: rotate(45deg); }
.ps-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4cqw 0; }
.ps-steps li p { font-size: 1.45cqw; line-height: 1.75; color: var(--slate); margin: .6cqw 0 0 !important; padding-inline-end: 2.4cqw; }
.ps-steps__w { display: flex; align-items: flex-end; font-family: var(--f-d); font-weight: 700; font-size: 3.6cqw; line-height: 1.3; }
.ps-steps__w i { flex: 1; height: .3cqw; background: var(--ink); margin-bottom: 1.2cqw; }
.ps-steps li:nth-child(3n) .ps-steps__w i { background: linear-gradient(90deg, transparent, var(--ink)); }
.ps-steps li:last-child .ps-steps__w i { background: none; }
.ps-contact { margin-top: auto; margin-inline: -8cqw; margin-bottom: -4cqw; background: var(--ink); color: var(--mist); padding: 5cqw 8cqw 7cqw; display: grid; grid-template-columns: 14cqw 1fr; gap: 5cqw; align-items: center; }
.ps-contact img { width: 100%; height: auto; }
.ps-contact .ps-h2 { font-size: 5.2cqw; }
.ps-contact__lines { display: flex; flex-wrap: wrap; gap: 1cqw 4cqw; margin: 0 !important; direction: ltr; justify-content: flex-end; color: var(--gold-hi); font-size: 2cqw; }
.ps-last .leaf__foot { color: var(--fog); border-color: var(--line-ink); }

@media (max-width: 899px) {
  .page-profile { padding-top: 0 !important; }
  .p-bar__title { flex-basis: 100%; order: -1; }
}

@page { size: A4; margin: 0; }
@media print {
  html, body, .page-profile { background: #fff !important; }
  .p-bar, .p-hint { display: none !important; }
  .p-sheets { padding: 0; gap: 0; display: block; }
  .leaf { width: 210mm; height: 297mm; aspect-ratio: auto; box-shadow: none; break-after: page; page-break-after: always; }
  .leaf:last-child { break-after: auto; page-break-after: auto; }
}
