/* استایل مشترک سایت صدرا (صفحه‌ی اصلی + صفحه‌های کشورها) */
:root {
  --paper: #ffffff;
  --graphite: #2e2e2e;
}
html, body { margin: 0; background: var(--paper); color: var(--graphite); }
[hidden] { display: none !important; }   /* ویژگی hidden همیشه بر display کلاس‌ها غالب باشد */
body { overflow-x: hidden; }

/* ---------- اسکرول‌موشن ---------- */
.sm { position: relative; /* ارتفاع با JS تنظیم می‌شود */ }
.sm__stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh; /* svh: با جمع/باز شدن نوار آدرس موبایل نمی‌پرد */
  overflow: hidden;
  background: var(--paper);
  will-change: opacity;
}
.sm__canvas { display: block; width: 100%; height: 100%; }

/* بارگذاری */
.loader {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center;
  background: var(--paper);
  transition: opacity .6s ease;
}
.loader.is-done { opacity: 0; pointer-events: none; }
.loader svg { width: 96px; height: 96px; }
.loader .ring { stroke-dasharray: 260; stroke-dashoffset: 260; transition: stroke-dashoffset .2s linear; }

/* بخش بعدی سایت */
.next { min-height: 100vh; background: var(--paper); }
/* ================= فونت (Vazirmatn، کنار سایت، بدون CDN) ================= */
@font-face { font-family: "Vazirmatn"; font-weight: 400; font-display: swap; src: url("../fonts/vazirmatn-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Vazirmatn"; font-weight: 500; font-display: swap; src: url("../fonts/vazirmatn-arabic-500-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Vazirmatn"; font-weight: 700; font-display: swap; src: url("../fonts/vazirmatn-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Vazirmatn"; font-weight: 400; font-display: swap; src: url("../fonts/vazirmatn-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }
@font-face { font-family: "Vazirmatn"; font-weight: 500; font-display: swap; src: url("../fonts/vazirmatn-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }
@font-face { font-family: "Vazirmatn"; font-weight: 700; font-display: swap; src: url("../fonts/vazirmatn-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }

body { font-family: "Vazirmatn", Tahoma, sans-serif; }

/* ================= هدر ================= */
:root {
  --ink: #2b2a29;          /* رنگ جوهر لوگو — همه‌ی خطوط و متن‌ها از همین */
  --ink-soft: #6b6967;
  --header-h: 84px;
  --logo-h: 52px;
}
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  height: var(--header-h);
  padding-left: max(32px, env(safe-area-inset-left, 0px));
  padding-right: max(32px, env(safe-area-inset-right, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  display: flex; align-items: center; gap: 28px;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.hdr.is-hidden { transform: translateY(calc(-100% - 12px)); }
/* خط مدادی زیر هدر */
.hdr__line { position: absolute; left: 0; right: 0; bottom: -6px; width: 100%; height: 10px; pointer-events: none; }

.hdr__logo { display: block; flex: none; line-height: 0; }
.hdr__logo img { height: var(--logo-h); width: auto; display: block; }

.nav { flex: 1; display: flex; justify-content: center; min-width: 0; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 30px; }
.nav__link {
  position: relative; display: inline-block;
  padding: 8px 2px;
  color: var(--ink); text-decoration: none;
  font-size: 15.5px; font-weight: 500; white-space: nowrap;
}
/* خط‌زیر مدادی که با هاور کشیده می‌شود */
.scribble { position: absolute; left: -4px; right: -4px; bottom: 0; width: calc(100% + 8px); height: 8px; overflow: visible; pointer-events: none; }
.scribble path { transform-box: fill-box; transform-origin: 100% 50%; transform: scaleX(0); transition: transform .45s ease; }
.nav__link:hover .scribble path,
.nav__link:focus-visible .scribble path { transform: scaleX(1); }
.nav__link:focus-visible { outline: none; }

/* دکمه‌ی مدادی */
.sk-btn {
  position: relative; flex: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px;
  border: 0; background: transparent; cursor: pointer;
  color: var(--ink); font: 700 15px/1 "Vazirmatn", Tahoma, sans-serif; white-space: nowrap;
}
.sk-btn > span { position: relative; z-index: 1; overflow: hidden; text-overflow: ellipsis; }
.sk-btn .sk-box { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sk-btn .sk-hatch { opacity: 0; transition: opacity .3s ease; }
.sk-btn:hover .sk-hatch, .sk-btn:focus-visible .sk-hatch { opacity: .16; }
.sk-btn:focus-visible { outline: 2px dashed var(--ink); outline-offset: 4px; }

/* دکمه‌ی منوی موبایل */
.burger { display: none; flex: none; width: 46px; height: 46px; margin-inline-start: auto; padding: 0; border: 0; background: transparent; cursor: pointer; color: var(--ink); }
.burger svg { width: 100%; height: 100%; }
.burger:focus-visible { outline: 2px dashed var(--ink); outline-offset: 2px; }

/* کشوی منوی موبایل */
.drawer {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column;
  padding: calc(18px + env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px));
  background: var(--paper);
  transform: translateX(100%); visibility: hidden;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .5s;
  overflow-y: auto;
}
.drawer.is-open { transform: none; visibility: visible; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.drawer__top { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.drawer__top img { height: 40px; width: auto; display: block; }
.icon-btn { width: 46px; height: 46px; padding: 0; border: 0; background: transparent; cursor: pointer; color: var(--ink); }
.icon-btn svg { width: 100%; height: 100%; }
.icon-btn:focus-visible { outline: 2px dashed var(--ink); outline-offset: 2px; }
.drawer__list { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.drawer__list .nav__link { font-size: 21px; padding: 12px 2px; }
.drawer.is-open .drawer__list li { animation: drawIn .5s both; }
.drawer.is-open .drawer__list li:nth-child(2) { animation-delay: .04s }
.drawer.is-open .drawer__list li:nth-child(3) { animation-delay: .08s }
.drawer.is-open .drawer__list li:nth-child(4) { animation-delay: .12s }
.drawer.is-open .drawer__list li:nth-child(5) { animation-delay: .16s }
.drawer.is-open .drawer__list li:nth-child(6) { animation-delay: .20s }
.drawer.is-open .drawer__list li:nth-child(7) { animation-delay: .24s }
@keyframes drawIn { from { opacity: 0; transform: translateX(18px) } to { opacity: 1; transform: none } }
.drawer .sk-btn { margin-top: auto; height: 52px; width: 100%; font-size: 16px; }
.drawer__spacer { height: 32px; flex: none; }

@media (max-width: 1100px) {
  .nav__list { gap: 22px; }
  .nav__link { font-size: 14.5px; }
}
@media (max-width: 960px) {
  :root { --header-h: 66px; --logo-h: 38px; }
  .hdr { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .hdr .nav, .hdr > .sk-btn { display: none; }
  .burger { display: block; }
}

/* ---------- زیرمنو (دسکتاپ: کشویی، موبایل: آکاردئون) ---------- */
.chev { width: 11px; height: 8px; margin-inline-start: 6px; vertical-align: middle; transition: transform .3s ease; }
.nav .has-sub { position: relative; }
.nav .has-sub:hover .chev, .nav .has-sub:focus-within .chev { transform: rotate(180deg); }
.sub {
  position: absolute; top: 100%; right: -22px; z-index: 5;
  min-width: 210px; padding: 14px 8px 12px;
  background: var(--paper);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s ease, transform .3s ease, visibility 0s linear .3s;
  filter: drop-shadow(0 14px 22px rgba(43, 42, 41, .08));
}
.nav .has-sub:hover > .sub,
.nav .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .3s ease; }
.nav .has-sub.is-closed > .sub,
.hdr.is-hidden .sub { opacity: 0; visibility: hidden; }
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* پل هاور بین آیتم و کشو */
.sub__frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.sub__list, .acc__list { position: relative; list-style: none; margin: 0; padding: 0; }
.sub__link {
  position: relative; display: flex; align-items: center;
  height: 40px; padding: 0 14px;
  color: var(--ink); text-decoration: none; font-size: 14.5px; white-space: nowrap;
}
.sub__link > span { overflow: hidden; text-overflow: ellipsis; }
.sub__link .scribble { left: 10px; right: 10px; width: calc(100% - 20px); bottom: 6px; }
.sub__link:hover .scribble path, .sub__link:focus-visible .scribble path { transform: scaleX(1); }
.sub__link:focus-visible { outline: none; }

.acc__btn { display: flex; align-items: center; width: 100%; border: 0; background: transparent; cursor: pointer; font-family: inherit; text-align: right; }
.acc__btn .chev { width: 14px; height: 10px; margin-inline-start: 10px; }
.acc__btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.acc__panel { height: 0; overflow: hidden; transition: height .35s ease; }
.acc__list { padding: 2px 14px 10px 0; border-right: 1px solid rgba(43, 42, 41, .25); margin-right: 4px; }
.acc__list .sub__link { height: 44px; font-size: 16px; padding: 0 12px; }

/* ================= پاپ‌آپ فرم درخواست مشاوره ================= */
.modal {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  padding: 20px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px));
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility 0s linear .35s;
  overflow-y: auto;
}
.modal.is-open { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.modal__card {
  position: relative; width: 100%; max-width: 480px; box-sizing: border-box;
  padding: 34px 32px 30px;
  background: var(--paper);
}
.modal__frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.modal__frame path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.modal.is-open .modal__frame path { animation: drawFrame .9s ease forwards; }
.modal.is-open .modal__frame path:nth-child(2) { animation-delay: .15s; }
@keyframes drawFrame { to { stroke-dashoffset: 0; } }
.modal__close { position: absolute; top: 10px; left: 10px; width: 40px; height: 40px; }
.modal__title { margin: 0 0 6px; font-size: 22px; font-weight: 700; color: var(--ink); }
.modal__sub { margin: 0 0 22px; font-size: 14px; color: var(--ink-soft); line-height: 1.8; }
.form { display: flex; flex-direction: column; gap: 16px; }
.field { position: relative; display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 13.5px; font-weight: 500; color: var(--ink); }
.field input, .field textarea {
  width: 100%; box-sizing: border-box;
  padding: 8px 2px; border: 0; background: transparent;
  font: 400 15px/1.7 "Vazirmatn", Tahoma, sans-serif; color: var(--ink);
  outline: none; resize: vertical;
}
.field textarea { min-height: 84px; }
.field input[dir="ltr"] { text-align: right; }
.field .under { display: block; width: 100%; height: 6px; overflow: visible; }
.field .under .ink { transform-box: fill-box; transform-origin: 100% 50%; transform: scaleX(0); transition: transform .5s ease; }
.field:focus-within .under .ink { transform: scaleX(1); }
.field.is-error .under .base { stroke: #b3261e; }
.field .err { min-height: 0; font-size: 12.5px; color: #b3261e; }
.form .sk-btn { align-self: flex-start; margin-top: 6px; }
.form__note { margin: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.8; }
@media (max-width: 480px) { .modal__card { padding: 30px 20px 24px; } }

@media (prefers-reduced-motion: reduce) {
  .hdr, .drawer, .modal { transition: none; }
  .drawer.is-open .drawer__list li { animation: none; }
  .modal.is-open .modal__frame path { animation: none; stroke-dashoffset: 0; }
}
/* ================= چهار کارت خدمات — برگه‌های طراحی چسبانده‌شده ================= */
.svc {
  min-height: 0;   /* ارث‌بری قدیمی .next (100vh) فاصله‌ی زیادی می‌ساخت */
  padding-block: 110px 90px;
  padding-left: max(32px, env(safe-area-inset-left, 0px));
  padding-right: max(32px, env(safe-area-inset-right, 0px));
  overflow-x: clip;
}
.svc__grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px; }
.scard {
  --r: -1.2deg;
  position: relative; display: flex; flex-direction: column;
  padding: 18px 18px 22px;
  color: #1c1b1a; text-decoration: none;
  background-color: #fbfaf6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  border-radius: 3px;
  box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05), 0 18px 30px -20px rgba(0,0,0,.4);
  transform: rotate(var(--r));
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s ease;
}
.scard:nth-child(2) { --r: .9deg; }
.scard:nth-child(3) { --r: -.6deg; }
.scard:nth-child(4) { --r: 1.3deg; }
/* نوار چسب کاغذی بالای هر برگه */
.scard::before {
  content: ""; position: absolute; top: -12px; left: 50%; width: 92px; height: 26px; margin-left: -46px;
  background: linear-gradient(180deg, rgba(232,230,224,.92), rgba(214,211,204,.88));
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
  clip-path: polygon(3% 0, 97% 4%, 100% 30%, 96% 55%, 100% 100%, 4% 96%, 0 70%, 3% 42%, 0 12%);
  transform: rotate(calc(var(--r) * -2.5));
}
.scard:hover, .scard:focus-visible { transform: rotate(0deg) translateY(-8px); box-shadow: 0 2px 2px rgba(0,0,0,.08), 0 8px 14px rgba(0,0,0,.06), 0 34px 44px -22px rgba(0,0,0,.45); }
.scard:focus-visible { outline: 2px solid #111; outline-offset: 6px; }
.scard__media { position: relative; aspect-ratio: 4 / 3; margin: 0 -6px 14px; }
.scard__media svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.scard .sk .l-h { transition: opacity .4s ease; }
.scard:hover .sk .l-h { opacity: 1; }
.scard__title { margin: 0 0 8px; font-size: 19px; font-weight: 700; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scard__desc { margin: 0 0 16px; font-size: 14px; line-height: 1.95; color: #5a5854; text-align: justify; text-align-last: right; }
.scard__more { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; height: 30px; font-size: 14px; font-weight: 700; color: #111; border-bottom: 1.5px solid #111; white-space: nowrap; }
.scard__more svg { width: 20px; height: 11px; transition: transform .3s ease; }
.scard:hover .scard__more svg { transform: translateX(-5px); }
.scard .pencil { width: 52px; height: 52px; }
/* استایل خطوط طرح (مشترک با دفترچه) */
.sk path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sk .l-c { stroke: #a3a19c; stroke-width: .7; opacity: .7; }
.sk .l-m { stroke: #2b2927; stroke-width: 1.75; }
.sk .l-g { stroke: #2b2927; stroke-width: 1.1; opacity: .32; }
.sk .l-d { stroke: #353331; stroke-width: 1.05; }
.sk .l-h { stroke: #403e3b; stroke-width: .72; opacity: .78; }
.sk .l-x { stroke: #4a4845; stroke-width: 1.05; }
.pencil { position: absolute; top: 0; left: 0; z-index: 6; pointer-events: none; opacity: 0; transition: opacity .25s ease; will-change: transform; filter: drop-shadow(-6px 10px 6px rgba(0,0,0,.18)); }
.pencil.is-on { opacity: 1; }
@media (max-width: 1100px) { .svc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; gap: 40px 34px; } }
@media (max-width: 640px) {
  .svc { padding-block: 80px 100px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .svc__grid { grid-template-columns: minmax(0, 1fr); max-width: 400px; gap: 44px; }
}
@media (prefers-reduced-motion: reduce) { .scard { transition: none; } }

/* ================= درباره ما (سه‌بعدی، سیاه و سفید) ================= */
.about {
  position: relative;
  padding-block: 70px 140px;
  padding-left: max(32px, env(safe-area-inset-left, 0px));
  padding-right: max(32px, env(safe-area-inset-right, 0px));
  overflow-x: clip;
}
.about__inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 72px; align-items: center;
}
.about__text { min-width: 0; }
.about__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; color: #6b6967;
}
.about__eyebrow::before { content: ""; width: 28px; height: 2px; background: #111; }
.about__title {
  margin: 14px 0 26px;
  font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; line-height: 1.35; color: #111;
  text-wrap: balance;
}
/* متن در دسکتاپ و موبایل justify */
.about__text p {
  margin: 0 0 18px;
  font-size: 16px; line-height: 2.1; color: #2f2e2d;
  text-align: justify; text-justify: inter-word; text-align-last: right;
}

/* دکمه‌ی سه‌بعدی سیاه */
.btn3d {
  position: relative; margin-top: 18px;
  height: 54px; padding: 0 30px;
  border: 0; border-radius: 14px; cursor: pointer;
  font: 700 15.5px/1 "Vazirmatn", Tahoma, sans-serif; color: #fff; white-space: nowrap;
  background: linear-gradient(180deg, #3a3a3a 0%, #111 55%, #000 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    0 6px 0 #000,
    0 14px 24px -6px rgba(0, 0, 0, .45);
  transform: translateY(0);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn3d:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 8px 0 #000, 0 20px 30px -8px rgba(0,0,0,.45); }
.btn3d:active { transform: translateY(5px); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 1px 0 #000, 0 6px 12px -4px rgba(0,0,0,.4); }
.btn3d:focus-visible { outline: 2px solid #111; outline-offset: 5px; }

/* کره */
.about__visual { min-width: 0; }
.globe { position: relative; width: 100%; aspect-ratio: 1 / 1; max-width: 100%; }
.globe__canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.globe__canvas:active { cursor: grabbing; }
.globe__fallback {
  display: none; position: absolute; inset: 12%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4a4a4a, #0c0c0c 70%);
  box-shadow: 0 40px 60px -30px rgba(0, 0, 0, .5);
}
.globe.no-webgl .globe__canvas { display: none; }
.globe.no-webgl .globe__fallback { display: block; }

@media (max-width: 900px) {
  .about { padding-block: 80px 100px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .about__inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .about__visual { order: -1; max-width: 520px; width: 100%; margin: 0 auto; }
  .about__text p { font-size: 15.5px; line-height: 2.05; }
  .about .btn3d { width: 100%; }   /* فقط دکمه‌ی بخش درباره ما */
}
/* ================= پیشنهاد ما برای مهاجرت — دوستونه ================= */
.rec {
  padding-block: 100px 120px;
  padding-left: max(32px, env(safe-area-inset-left, 0px));
  padding-right: max(32px, env(safe-area-inset-right, 0px));
  overflow-x: clip;
}
.rec__head { max-width: 980px; margin: 0 auto 40px; }
.rec__title { margin: 14px 0 0; font-size: clamp(28px, 3vw, 40px); font-weight: 700; line-height: 1.35; color: #111; text-wrap: balance; }
.rx {
  --h: 500px;
  max-width: 980px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: 56px; align-items: center;
}

/* ---------- ستون راست: پنل‌های تمام‌قد با اسکرول، هر بار یک کشور ---------- */
.rx__col { position: relative; min-width: 0; height: var(--h); }
.rx__list {
  height: 100%; overflow-y: auto; overscroll-behavior-y: auto;
  scroll-snap-type: y mandatory; scrollbar-width: none;
  margin-right: 150px;
  outline: none;
}
.rx__list::-webkit-scrollbar { display: none; }
.rx__list:focus-visible { outline: 2px solid #111; outline-offset: 4px; border-radius: 8px; }
.rx__item {
  height: var(--h); display: flex; flex-direction: column; justify-content: center;
  scroll-snap-align: start; scroll-snap-stop: always;
}
.rx__item > * { opacity: 0; transform: translateY(18px); transition: opacity .45s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.rx__item.is-active > * { opacity: 1; transform: none; }
.rx__item.is-active > :nth-child(2) { transition-delay: .05s; }
.rx__item.is-active > :nth-child(3) { transition-delay: .1s; }
.rx__item.is-active > :nth-child(4) { transition-delay: .15s; }
.rx__item.is-active > :nth-child(5) { transition-delay: .2s; }
.rx__num { font-size: 13px; font-weight: 500; color: #8c8a85; font-variant-numeric: tabular-nums; }
.rx__name { margin: 6px 0 0; font-size: clamp(36px, 4vw, 52px); font-weight: 700; line-height: 1.25; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx__place { margin: 8px 0 14px; font-size: 15px; font-weight: 500; color: #4a4845; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx__desc { margin: 0 0 18px; font-size: 14.5px; line-height: 2; color: #5a5854; text-align: justify; text-align-last: right; max-width: 42ch; }
.rx__link { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; height: 38px; color: #111; text-decoration: none; font-size: 14.5px; font-weight: 700; white-space: nowrap; border-bottom: 2px solid #111; }
.rx__link svg { width: 22px; height: 12px; transition: transform .3s ease; }
.rx__link:hover svg, .rx__link:focus-visible svg { transform: translateX(-5px); }
.rx__link:focus-visible { outline: 2px solid #111; outline-offset: 4px; }

/* فهرست ثابت نام کشورها (کنار پنل‌ها) */
.rx__index {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 124px; margin: 0; padding: 0 14px 0 0; list-style: none;
  border-right: 2px solid #e4e3e1;
  display: flex; flex-direction: column; gap: 2px;
}
.rx__index button {
  position: relative; display: flex; align-items: center; width: 100%; height: 34px; padding: 0;
  border: 0; background: none; cursor: pointer; text-align: right;
  font: 500 14px/1 "Vazirmatn", Tahoma, sans-serif; color: #a9a7a3; white-space: nowrap;
  transition: color .3s ease;
}
.rx__index button::before {
  content: ""; position: absolute; right: -16px; top: 7px; bottom: 7px; width: 2px; background: #111;
  transform: scaleY(0); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.rx__index button:hover { color: #4a4845; }
.rx__index button[aria-current="true"] { color: #111; font-weight: 700; }
.rx__index button[aria-current="true"]::before { transform: scaleY(1); }
.rx__index button:focus-visible { outline: 2px solid #111; outline-offset: 2px; }

.rx__hint { position: absolute; left: 0; bottom: 4px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #8c8a85; transition: opacity .4s ease; pointer-events: none; }
.rx__hint svg { width: 16px; height: 24px; }
.rx__wheel { animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1 } 70% { transform: translateY(7px); opacity: 0 } 100% { opacity: 0 } }
.rx__hint.is-hidden { opacity: 0; }

/* ---------- دفترچه‌ی سیمی ---------- */
.rx__art { position: relative; perspective: 1800px; }
.np { position: relative; transform-style: preserve-3d; transform: rotateX(6deg); }
.np__cover {
  position: absolute; inset: -20px -10px -12px; border-radius: 12px;
  background: radial-gradient(120% 140% at 50% 0%, #2c2c2c 0%, #141414 55%, #070707 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  transform: translateZ(-6px);
}
.np__shadow { position: absolute; left: 6%; right: 6%; bottom: -40px; height: 46px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.3), rgba(0,0,0,0)); filter: blur(6px); pointer-events: none; }
.np__pages {
  position: relative; height: var(--h);
  transform-style: preserve-3d;
  box-shadow: 0 1px 0 #e7e5e0, 0 2px 0 #fdfcf9, 0 3px 0 #e4e2dc, 0 4px 0 #fbfaf6, 0 5px 0 #dcdad4;
}
.np__page, .leaf__face {
  position: absolute; inset: 0; overflow: hidden; border-radius: 4px;
  background-color: #fbfaf6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.np__rings {
  position: absolute; left: 6%; right: 6%; top: -13px; height: 26px; z-index: 7; pointer-events: none;
  background: radial-gradient(circle at 50% 70%, #fbfaf6 0 3px, transparent 3.5px) 0 0 / 22px 26px repeat-x;
}
.np__rings::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, #d9d9d9 0%, #7a7a7a 40%, #222 100%) 6px 0 / 22px 18px repeat-x;
  -webkit-mask: radial-gradient(ellipse 4px 9px at 50% 50%, transparent 2.4px, #000 2.6px) 0 0 / 22px 18px repeat-x;
          mask: radial-gradient(ellipse 4px 9px at 50% 50%, transparent 2.4px, #000 2.6px) 0 0 / 22px 18px repeat-x;
}
.np__shade { position: absolute; inset: 0; pointer-events: none; opacity: 0; z-index: 3; background: linear-gradient(180deg, rgba(0,0,0,.26), rgba(0,0,0,.04)); }

.leaf { position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: 50% 0; z-index: 5; pointer-events: none; }
.leaf__face { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.leaf__face--back { transform: rotateX(180deg); }
.leaf__shade { position: absolute; inset: 0; pointer-events: none; z-index: 4; }

.pd { position: absolute; inset: 0; padding: 9% 7% 7%; }
.pd__art { position: relative; width: 100%; height: 100%; }
.pd__art svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sk path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sk .l-c { stroke: #a3a19c; stroke-width: .7; opacity: .7; }
.sk .l-m { stroke: #2b2927; stroke-width: 1.75; }
.sk .l-g { stroke: #2b2927; stroke-width: 1.1; opacity: .32; }
.sk .l-d { stroke: #353331; stroke-width: 1.05; }
.sk .l-h { stroke: #403e3b; stroke-width: .72; opacity: .78; }
.sk .l-x { stroke: #4a4845; stroke-width: 1.05; }
.pd__cap { position: absolute; right: 7%; top: 5.5%; font-size: 13px; font-weight: 700; color: #2b2927; letter-spacing: .02em; }
.pnum { position: absolute; left: 16px; bottom: 12px; font-size: 12px; color: #9a9893; font-variant-numeric: tabular-nums; }

.stamp { position: absolute; left: 5%; top: 4.5%; width: 22%; max-width: 92px; aspect-ratio: 1; opacity: 0; transform: rotate(-16deg) scale(1.9); pointer-events: none; z-index: 2; }
.stamp svg { width: 100%; height: 100%; display: block; }
.np__page.is-stamped .stamp { animation: stampIn .45s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes stampIn {
  0% { opacity: 0; transform: rotate(-22deg) scale(1.9); }
  55% { opacity: .9; transform: rotate(-14deg) scale(.94); }
  100% { opacity: .8; transform: rotate(-16deg) scale(1); }
}
.pencil { position: absolute; top: 0; left: 0; width: 68px; height: 68px; z-index: 6; pointer-events: none; opacity: 0; transition: opacity .25s ease; will-change: transform; filter: drop-shadow(-6px 10px 6px rgba(0,0,0,.18)); }
.pencil.is-on { opacity: 1; }

/* ---------- موبایل: دفترچه بالا، فهرست زیرش ---------- */
@media (max-width: 860px) {
  .rec { padding-block: 80px 100px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .rx { --h: 270px; grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .rx__art { order: -1; width: 100%; max-width: 360px; margin: 0 auto; }
  .np__pages { height: auto; aspect-ratio: 10 / 12; }
  .rx__list { margin-right: 0; }
  .rx__index { display: none; }
  .rx__desc { font-size: 14px; line-height: 1.9; }
  .rx__hint span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rx__item > * { transition: none; }
  .np__page.is-stamped .stamp { animation: none; opacity: .8; transform: rotate(-16deg); }
  .rx__wheel { animation: none; }
}
/* دکمه‌ی گرد سیاه سه‌بعدی (مشترک) */
.rbtn {
  width: 54px; height: 54px; border: 0; border-radius: 50%; cursor: pointer; color: #fff;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 28%, #4a4a4a 0%, #121212 55%, #000 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 5px 0 #000, 0 14px 22px -8px rgba(0,0,0,.5);
  transition: transform .15s ease, box-shadow .15s ease;
}
.rbtn svg { width: 22px; height: 22px; }
.rbtn:hover { transform: translateY(-2px); }
.rbtn:active { transform: translateY(4px); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 0 #000, 0 6px 12px -6px rgba(0,0,0,.5); }
.rbtn:focus-visible { outline: 2px solid #111; outline-offset: 4px; }

/* ================= نظرات مشتریان — کارت‌پستال ================= */
.pcs { padding-block: 100px 110px; overflow-x: clip; }
.pcs__head {
  max-width: 1240px; margin: 0 auto 30px;
  padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px));
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
}
.pcs__nav { display: flex; gap: 12px; flex: none; }
.pcs__track {
  display: flex; gap: 36px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 40px max(32px, calc(50% - 235px)) 60px;   /* اولین و آخرین کارت‌پستال هم بتوانند وسط بایستند */
  outline: none; cursor: grab;
}
.pcs__track::-webkit-scrollbar { display: none; }
.pcs__track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.pcs__track.is-drag * { pointer-events: none; user-select: none; }
.pcs__track:focus-visible { outline: 2px solid #111; outline-offset: -6px; }
.paper-bg {
  background-color: #fbfaf6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.pc {
  flex: none; width: 470px; aspect-ratio: 3 / 2; scroll-snap-align: center;
  position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) 8px minmax(0, 1fr); gap: 18px;
  padding: 26px 26px 22px; box-sizing: border-box;
  background-color: #fbfaf6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 3px 8px rgba(0,0,0,.05), 0 22px 34px -22px rgba(0,0,0,.42);
  transform: rotate(var(--r));
  opacity: 0; translate: 0 60px; scale: .96;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s ease, opacity .6s ease, translate .9s cubic-bezier(.16, .84, .3, 1), scale .9s cubic-bezier(.16, .84, .3, 1);
}
.pc.is-in { opacity: 1; translate: 0 0; scale: 1; }
.pc:hover { transform: rotate(0deg) translateY(-8px); box-shadow: 0 2px 2px rgba(0,0,0,.08), 0 10px 18px rgba(0,0,0,.06), 0 38px 46px -24px rgba(0,0,0,.48); }
.pc__msg { display: flex; flex-direction: column; min-width: 0; }
.pc__hello { font-size: 15px; font-weight: 700; color: #1c1b1a; margin-bottom: 8px; }
.pc__text {
  margin: 0; font-size: 14px; line-height: 2.1; color: #3d3b38; text-align: justify; text-align-last: right;
  /* خطوط راهنمای کارت‌پستال زیر متن */
  background-image: linear-gradient(transparent calc(100% - 1px), rgba(43, 41, 39, .14) calc(100% - 1px));
  background-size: 100% 2.1em;
}
.pc__sign { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.pc__sign strong { font-size: 15px; color: #111; }
.pc__sign span { font-size: 12.5px; color: #7a7874; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc__divider { width: 8px; height: 100%; overflow: visible; }
.pc__divider path, .pc__addr path { fill: none; stroke: #2b2927; stroke-width: 1.3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s ease .3s; }
.pc__addr path { stroke-width: 1; opacity: .7; transition-delay: .9s; }
.pc.is-in .pc__divider path, .pc.is-in .pc__addr path { stroke-dashoffset: 0; }
.pc__side { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
/* تمبر با لبه‌ی دندانه‌دار */
.pc__stamp {
  position: relative; align-self: flex-start; width: 92px; padding: 7px 7px 4px; box-sizing: border-box;
  background: #fff;
  /* دندانه فقط روی لبه‌ها: وسط تمبر کامل، حاشیه‌ی ۷px سوراخ‌دار */
  -webkit-mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle 3.2px at 4.5px 4.5px, transparent 3px, #000 3.3px) 0 0 / 9px 9px padding-box;
          mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle 3.2px at 4.5px 4.5px, transparent 3px, #000 3.3px) 0 0 / 9px 9px padding-box;
  -webkit-mask-composite: source-over; mask-composite: add;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.25));
  transform: rotate(3deg);
}
.pc__stamp-in { border: 1px solid #2b2927; aspect-ratio: 4 / 5; overflow: hidden; background: #fbfaf6; }
.pc__mini { width: 100%; height: 100%; display: block; }
.pc__mini path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pc__mini .l-m { stroke: #2b2927; stroke-width: 3.2; }
.pc__mini .l-d { stroke: #353331; stroke-width: 2; }
.pc__mini .l-h { stroke: #403e3b; stroke-width: 1.4; opacity: .8; }
.pc__mini .l-x { stroke: #4a4845; stroke-width: 2; }
.pc__stamp-name { display: block; text-align: center; font-size: 10.5px; font-weight: 700; color: #2b2927; margin-top: 2px; }
.pc__postmark { position: absolute; top: 34px; left: -14px; width: 150px; height: 82px; opacity: 0; transform: rotate(-10deg) scale(1.7); pointer-events: none; }
.pc.is-in .pc__postmark { animation: pmIn .45s cubic-bezier(.3, 1.6, .5, 1) 1.4s forwards; }
@keyframes pmIn { 0% { opacity: 0; transform: rotate(-16deg) scale(1.7); } 60% { opacity: .85; transform: rotate(-9deg) scale(.95); } 100% { opacity: .72; transform: rotate(-10deg) scale(1); } }
.pc__addr { margin-top: auto; width: 100%; }
.pc__addr span { display: block; font-size: 12.5px; font-weight: 500; color: #3d3b38; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc__addr svg { display: block; width: 100%; height: 40px; overflow: visible; }

/* ================= تماس با ما ================= */
.ct {
  padding-block: 100px 140px;
  padding-left: max(32px, env(safe-area-inset-left, 0px));
  padding-right: max(32px, env(safe-area-inset-right, 0px));
  overflow-x: clip;
}
.ct__inner { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 70px; align-items: center; }
.ct__lead { margin: 18px 0 30px; font-size: 15.5px; line-height: 2.1; color: #4a4845; text-align: justify; text-align-last: right; max-width: 52ch; }
.ct__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ct__item {
  display: flex; align-items: center; gap: 16px; min-height: 64px;
  opacity: 0; translate: 0 16px; transition: opacity .5s ease, translate .6s cubic-bezier(.2, .8, .2, 1);
}
.ct__item.is-in { opacity: 1; translate: 0 0; }
.ct__icon { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: #f3f2ef; }
.ct__icon svg { width: 40px; height: 40px; overflow: visible; }
.ct__icon .l-m { stroke-width: 3; }
.ct__icon .l-d { stroke-width: 2; }
.ct__icon .l-h { stroke-width: 1.3; }
.ct__icon .l-x { stroke-width: 2; }
.ct__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ct__label { font-size: 12.5px; color: #8a8884; }
.ct__value { font-size: 16px; font-weight: 700; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }

/* برگه‌ی نامه */
.ct__paper { position: relative; min-height: 560px; }
.ct__sheet {
  position: relative; padding: 46px 40px 34px 34px;
  background-color: #fbfaf6;
  background-image:
    linear-gradient(90deg, transparent calc(100% - 28px), rgba(43,41,39,.28) calc(100% - 28px), rgba(43,41,39,.28) calc(100% - 27px), transparent calc(100% - 27px)),
    repeating-linear-gradient(180deg, transparent 0 39px, rgba(43,41,39,.11) 39px 40px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-position: 0 0, 0 22px, 0 0;
  border-radius: 3px;
  box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 3px 8px rgba(0,0,0,.05), 0 30px 44px -26px rgba(0,0,0,.45);
  transform: rotate(-1deg);
  transform-origin: 50% 50%;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.ct__sheet::before {          /* نوار چسب */
  content: ""; position: absolute; top: -13px; left: 50%; width: 110px; height: 28px; margin-left: -55px;
  background: linear-gradient(180deg, rgba(232,230,224,.92), rgba(214,211,204,.88)); box-shadow: 0 1px 2px rgba(0,0,0,.1);
  clip-path: polygon(3% 0, 97% 4%, 100% 30%, 96% 55%, 100% 100%, 4% 96%, 0 70%, 3% 42%, 0 12%);
  transform: rotate(2deg);
}
.ct__to { display: block; font-size: 15px; font-weight: 700; color: #1c1b1a; margin-bottom: 14px; }
.ct__form { display: flex; flex-direction: column; gap: 12px; }
.ct__field { display: flex; flex-direction: column; gap: 2px; }
.ct__field label { font-size: 13px; font-weight: 500; color: #6b6965; }
.ct__field input, .ct__field select, .ct__field textarea {
  width: 100%; box-sizing: border-box; border: 0; border-bottom: 1.5px solid rgba(43,41,39,.55);
  background: transparent; padding: 6px 2px; color: #111; outline: none;
  font: 500 16px/1.6 "Vazirmatn", Tahoma, sans-serif; border-radius: 0;
  transition: border-color .3s ease;
}
.ct__field input[dir="ltr"] { text-align: right; }
.ct__field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.8C3.5 3.6 4.6 4.8 6 6.3C7.6 4.6 8.8 3.4 10.5 1.6' fill='none' stroke='%232b2927' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 4px center; background-size: 12px 8px; padding-left: 24px; }
.ct__field textarea { min-height: 112px; resize: vertical; line-height: 2.1; }
.ct__field input:focus, .ct__field select:focus, .ct__field textarea:focus { border-bottom-color: #111; border-bottom-width: 2px; }
.ct__field.is-error input, .ct__field.is-error textarea { border-bottom-color: #b3261e; }
.ct__err { font-size: 12.5px; color: #b3261e; min-height: 0; }
.ct__send { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; }
.ct__send svg { width: 20px; height: 20px; }

/* تا شدن و پرواز */
.ct__sheet.is-folding { animation: fold .9s cubic-bezier(.6, 0, .3, 1) forwards; }
@keyframes fold {
  0%   { clip-path: polygon(0 0, 50% 0, 100% 0, 100% 100%, 50% 100%, 0 100%); transform: rotate(-1deg) scale(1); }
  45%  { clip-path: polygon(0 18%, 50% 0, 100% 18%, 100% 82%, 50% 100%, 0 82%); transform: rotate(-4deg) scale(.7); }
  100% { clip-path: polygon(0 50%, 100% 8%, 68% 50%, 100% 92%, 68% 50%, 0 50%); transform: rotate(-12deg) scale(.32); }
}
.ct__sheet.is-flying { animation: fold .01s forwards, fly 1.2s cubic-bezier(.5, 0, .7, .4) forwards; }
@keyframes fly {
  0%   { transform: rotate(-12deg) scale(.32) translate(0, 0); opacity: 1; }
  100% { transform: rotate(-28deg) scale(.18) translate(-1700px, -900px); opacity: 0; }
}
.ct__sheet.is-gone { visibility: hidden; }
.ct__trail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.ct__trail path { fill: none; stroke: #2b2927; stroke-width: 1.4; stroke-dasharray: .012 .012; stroke-dashoffset: 0; opacity: 0; }
.ct__paper:has(.is-flying) .ct__trail path { opacity: .55; animation: trail 1.2s ease forwards; }
@keyframes trail { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
.ct__done {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  text-align: center; padding: 30px; opacity: 0; translate: 0 12px; transition: opacity .5s ease, translate .6s ease;
}
.ct__done.is-in { opacity: 1; translate: 0 0; }
.ct__done p { margin: 0; max-width: 34ch; font-size: 16px; line-height: 2; color: #2b2927; }
.ct__again { height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid #111; background: #fff; cursor: pointer; font: 700 14.5px/1 "Vazirmatn", Tahoma, sans-serif; color: #111; }
.ct__again:focus-visible { outline: 2px solid #111; outline-offset: 3px; }

@media (max-width: 900px) {
  .pcs { padding-block: 80px 90px; }
  .pcs__head { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .pcs__track { padding: 36px 7vw 50px; gap: 22px; }
  .ct { padding-block: 80px 110px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .ct__inner { grid-template-columns: minmax(0, 1fr); gap: 50px; }
  .ct__paper { min-height: 0; }
}
@media (max-width: 560px) {
  .pcs__nav { display: none; }
  .pc { width: 86vw; aspect-ratio: auto; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 22px 20px 20px; }
  .pc__divider { display: none; }
  .pc__side { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 12px; border-top: 1px dashed rgba(43,41,39,.3); padding-top: 14px; }
  .pc__stamp { width: 74px; order: 2; }
  .pc__postmark { top: auto; bottom: 30px; left: auto; right: 70px; width: 120px; height: 66px; }
  .pc__addr { margin-top: 0; width: auto; flex: 1; min-width: 0; }
  .ct__sheet { padding: 40px 34px 28px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .pc, .ct__item { transition: none; }
  .pc.is-in .pc__postmark { animation: none; opacity: .72; transform: rotate(-10deg); }
}
