/* =====================================================================
   صفحه‌های کشورها — سبک اسکچ مدادی + افکت‌های سه‌بعدی (سیاه و سفید)
   ===================================================================== */
.cp-main { padding-top: var(--header-h); }
.wrap {
  max-width: 1200px; margin: 0 auto;
  padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px));
}
.sec { padding-block: 100px; }
.sec__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: #6b6967; }
.sec__eyebrow::before { content: ""; width: 28px; height: 2px; background: #111; }
.sec__title { margin: 14px 0 14px; font-size: clamp(28px, 3vw, 40px); font-weight: 700; line-height: 1.35; color: #111; text-wrap: balance; }
.sec__lead { margin: 0 0 40px; max-width: 64ch; font-size: 15.5px; line-height: 2.05; color: #4a4845; text-align: justify; text-align-last: right; }
.paper {
  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");
}
.tape::before {
  content: ""; position: absolute; top: -12px; left: 50%; width: 96px; height: 26px; margin-left: -48px; z-index: 2;
  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);
}

/* ---------- قهرمان ---------- */
.cph { padding-block: 56px 90px; overflow-x: clip; }
.cph__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 60px; align-items: center; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; font-size: 13px; color: #8a8884; }
.crumbs li + li::before { content: "‹"; margin-left: 8px; color: #b5b3ae; }
.crumbs a { color: #6b6967; text-decoration: none; }
.crumbs a:hover { color: #111; text-decoration: underline; }
.cph__title { margin: 12px 0 18px; font-size: clamp(36px, 4.6vw, 60px); font-weight: 700; line-height: 1.25; color: #0d0d0d; text-wrap: balance; }
.cph__title svg { display: block; width: 58%; height: 14px; margin-top: 4px; overflow: visible; }
.cph__title svg path { fill: none; stroke: #111; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: ink 1s ease .5s forwards; }
@keyframes ink { to { stroke-dashoffset: 0; } }
.cph__lead { margin: 0 0 28px; max-width: 54ch; font-size: 16px; line-height: 2.1; color: #3f3d3a; text-align: justify; text-align-last: right; }
.cph__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-bottom: 36px; }
.cph__actions .btn3d { margin-top: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; height: 42px; color: #111; font-size: 15px; font-weight: 700; text-decoration: none; border-bottom: 2px solid #111; white-space: nowrap; }
.link-arrow svg { width: 22px; height: 12px; transition: transform .3s ease; }
.link-arrow:hover svg { transform: translateY(3px); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.fact { position: relative; padding: 14px 16px; border-radius: 4px; box-shadow: 0 1px 1px rgba(0,0,0,.07), 0 10px 20px -16px rgba(0,0,0,.35); }
.fact dt { font-size: 12.5px; color: #8a8884; margin-bottom: 4px; }
.fact dd { margin: 0; font-size: 16px; font-weight: 700; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* صحنه‌ی سه‌بعدی چندلایه */
.stage3d { position: relative; perspective: 1400px; height: 600px; }
.scene3d {
  --rx: 0deg; --ry: 0deg; --mx: 0; --my: 0;
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
}
.scene3d > * { position: absolute; transform-style: preserve-3d; }
.l-back {
  left: 10%; top: 6%; width: 72%; height: 82%; border-radius: 4px;
  transform: translateZ(-70px) rotate(-7deg);
  box-shadow: 0 1px 1px rgba(0,0,0,.06), 0 20px 34px -24px rgba(0,0,0,.4);
  background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(43,41,39,.1) 31px 32px);
}
.l-paper {
  left: 14%; top: 4%; width: 70%; height: 86%; border-radius: 4px;
  transform: translateZ(0) rotate(1.5deg);
  box-shadow: 0 1px 1px rgba(0,0,0,.08), calc(var(--mx) * -18px) calc(26px + var(--my) * -14px) 44px -22px rgba(0,0,0,.45);
}
.l-art { position: absolute; inset: 7% 6% 6%; transform: translateZ(36px); }
.l-art svg { width: 100%; height: 100%; overflow: visible; display: block; }
.l-cap { position: absolute; right: 7%; top: 3.6%; font-size: 13px; font-weight: 700; color: #2b2927; transform: translateZ(20px); }
.l-stamp { left: 4%; top: 2%; width: 128px; height: 128px; transform: translateZ(90px) rotate(-14deg); opacity: 0; }
.l-stamp.is-in { animation: stamp3d .5s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes stamp3d { 0% { opacity: 0; transform: translateZ(180px) rotate(-22deg) scale(1.6); } 60% { opacity: .9; transform: translateZ(84px) rotate(-12deg) scale(.95); } 100% { opacity: .85; transform: translateZ(90px) rotate(-14deg) scale(1); } }
.l-stamp svg { width: 100%; height: 100%; display: block; }
.l-ticket {
  right: 0; bottom: 4%; width: 300px; border-radius: 10px; overflow: hidden;
  transform: translateZ(140px) rotate(-7deg);
  box-shadow: 0 2px 2px rgba(0,0,0,.1), calc(var(--mx) * -26px) calc(30px + var(--my) * -20px) 40px -18px rgba(0,0,0,.5);
  display: grid; grid-template-columns: minmax(0, 1fr) 64px; color: #111;
}
.tk__main { padding: 14px 16px 14px 12px; min-width: 0; }
.tk__head { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: #555; direction: ltr; }
.tk__route { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0 8px; direction: ltr; }
.tk__route b { display: block; font-size: 30px; line-height: 1; font-weight: 700; letter-spacing: .02em; }
.tk__route small { display: block; font-size: 10px; color: #777; margin-top: 3px; letter-spacing: .06em; }
.tk__route svg { flex: 1; height: 20px; color: #111; }
.tk__meta { display: flex; gap: 14px; font-size: 10px; color: #777; direction: ltr; }
.tk__meta b { display: block; font-size: 12px; color: #111; }
.tk__stub { border-left: 2px dashed rgba(0,0,0,.25); padding: 12px 10px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; }
.tk__bar { width: 100%; height: 70px; background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 4px, #111 4px 5px, transparent 5px 8px, #111 8px 11px, transparent 11px 13px); }
.tk__stub span { font-size: 9.5px; font-weight: 700; letter-spacing: .1em; color: #333; direction: ltr; }
.pencil { position: absolute; top: 0; left: 0; width: 64px; height: 64px; 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; }

/* ---------- مسیرها: کارت‌های سه‌بعدی چندلایه ---------- */
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.path { perspective: 1000px; }
.path__in {
  --rx: 0deg; --ry: 0deg; --mx: 0; --my: 0;
  position: relative; height: 100%; box-sizing: border-box; padding: 28px 30px 28px; border-radius: 6px;
  transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry));
  box-shadow: 0 1px 1px rgba(0,0,0,.08), calc(var(--mx) * -16px) calc(22px + var(--my) * -12px) 36px -22px rgba(0,0,0,.45);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s ease;
}
.path.is-live .path__in { transition: box-shadow .2s linear; }
.path__num { position: absolute; left: 22px; top: 10px; font-size: 92px; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1.4px rgba(17,17,17,.22); transform: translateZ(26px); pointer-events: none; }
.path__head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; transform: translateZ(50px); }
.path__ic { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #f1f0ec; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.path__ic svg { width: 48px; height: 48px; overflow: visible; }
.path__title { margin: 0; font-size: 20px; font-weight: 700; color: #111; line-height: 1.45; }
.path__title small { display: block; font-size: 12.5px; font-weight: 500; color: #8a8884; direction: ltr; text-align: right; }
.path__text { margin: 0 0 14px; font-size: 14.5px; line-height: 2; color: #4a4845; text-align: justify; text-align-last: right; transform: translateZ(28px); }
.path__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; transform: translateZ(36px); }
.path__list li { position: relative; padding-right: 22px; font-size: 14px; line-height: 1.9; color: #2b2927; }
.path__list li::before { content: ""; position: absolute; right: 5px; top: .45em; width: 5px; height: 10px; border-right: 2px solid #111; border-bottom: 2px solid #111; transform: rotate(45deg); }   /* تیک دست‌کشیده */
.note { display: flex; gap: 12px; align-items: flex-start; margin-top: 30px; padding: 16px 18px; border: 1px dashed rgba(43,41,39,.4); border-radius: 6px; font-size: 13.5px; line-height: 2; color: #5a5854; }
.note svg { flex: none; width: 22px; height: 22px; margin-top: 4px; }

/* سکه‌های اسکچ (آیکون‌ها) */
.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; }
.path__ic .l-m { stroke-width: 3.2; } .path__ic .l-d { stroke-width: 2; } .path__ic .l-h { stroke-width: 1.4; }

/* ---------- مراحل: خط زمان که با اسکرول کشیده می‌شود ---------- */
.steps { position: relative; padding-right: 70px; }
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.steps__line { position: absolute; right: 26px; top: 10px; bottom: 10px; width: 8px; height: calc(100% - 20px); overflow: visible; }   /* svg خودش کشیده نمی‌شود؛ ارتفاع صریح لازم است */
.steps__line path { fill: none; stroke: #111; stroke-width: 2.2; stroke-linecap: round; }
.steps__line .base { stroke: rgba(17,17,17,.12); }
.step { position: relative; perspective: 900px; }
.step__dot { position: absolute; right: -58px; top: 22px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid #111; font-size: 14px; font-weight: 700; color: #111; z-index: 1; transition: background .4s ease, color .4s ease; }
.step.is-in .step__dot { background: #111; color: #fff; }
.step__card {
  padding: 20px 24px; border-radius: 6px; transform-origin: 100% 50%;
  box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 16px 26px -20px rgba(0,0,0,.4);
  opacity: 0; transform: rotateY(-62deg) translateX(-20px);
  transition: opacity .6s ease, transform .9s cubic-bezier(.16, .84, .3, 1);
}
.step.is-in .step__card { opacity: 1; transform: none; }
.step__card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; color: #111; }
.step__card p { margin: 0; font-size: 14.5px; line-height: 2; color: #4a4845; text-align: justify; text-align-last: right; }

/* ---------- شهرها: برچسب چمدان آویزان ---------- */
.cities { list-style: none; margin: 0; padding-right: 0; padding-left: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; padding-top: 30px; }
.tag { position: relative; perspective: 800px; }
.tag__string { position: absolute; left: 50%; top: -30px; width: 2px; height: 46px; margin-left: -1px; background: linear-gradient(180deg, transparent, #2b2927 30%); z-index: 2; }
.tag__in {
  position: relative; padding: 40px 20px 22px; text-align: center; box-sizing: border-box; height: 100%;
  clip-path: polygon(22% 0, 78% 0, 100% 12%, 100% 100%, 0 100%, 0 12%);
  border-radius: 4px;
  transform-origin: 50% 0;
  transform: rotateX(-90deg); opacity: 0;
  filter: drop-shadow(0 12px 14px rgba(0,0,0,.18));
}
.tag.is-in .tag__in { animation: tagIn 1.2s cubic-bezier(.3, 1.5, .5, 1) forwards; animation-delay: var(--d, 0s); }
@keyframes tagIn {
  0% { transform: rotateX(-90deg); opacity: 0; }
  40% { opacity: 1; }
  70% { transform: rotateX(14deg); }
  100% { transform: rotateX(0); opacity: 1; }
}
.tag:hover .tag__in { animation: tagSway 1.4s ease-in-out; opacity: 1; transform: none; }
@keyframes tagSway { 0%, 100% { transform: rotateY(0) rotateZ(0); } 25% { transform: rotateY(18deg) rotateZ(2deg); } 60% { transform: rotateY(-10deg) rotateZ(-1.5deg); } }
.tag__hole { position: absolute; left: 50%; top: 12px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #2b2927; }
.tag__name { display: block; margin: 8px 0 8px; font-size: 22px; font-weight: 700; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag__latin { display: block; font-size: 11px; letter-spacing: .14em; font-weight: 700; color: #8a8884; direction: ltr; }
.tag__desc { margin: 12px 0 0; font-size: 13.5px; line-height: 1.95; color: #55534f; }
.tag__in::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 10px; height: 0; border-bottom: 1px dashed rgba(43,41,39,.35); }

/* ---------- پرسش‌های پرتکرار ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 900px; }
.faq details { border-radius: 6px; box-shadow: 0 1px 1px rgba(0,0,0,.07), 0 10px 20px -18px rgba(0,0,0,.35); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-size: 16px; font-weight: 700; color: #111; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline: 2px solid #111; outline-offset: 2px; border-radius: 6px; }
.faq__pm { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid #111; position: relative; transition: transform .35s ease, background .3s ease; }
.faq__pm::before, .faq__pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: #111; transition: transform .35s ease, background .3s ease; }
.faq__pm::after { transform: rotate(90deg); }
.faq details[open] .faq__pm { background: #111; transform: rotate(180deg); }
.faq details[open] .faq__pm::before { background: #fff; }
.faq details[open] .faq__pm::after { transform: rotate(0); background: #fff; }
.faq__a { padding: 0 22px 20px; font-size: 14.5px; line-height: 2.05; color: #4a4845; text-align: justify; text-align-last: right; }

/* ---------- سایر مقصدها ---------- */
.others { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.other { position: relative; display: block; padding: 16px 16px 18px; border-radius: 4px; text-decoration: none; color: #111; perspective: 800px;
  box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 14px 24px -18px rgba(0,0,0,.4); transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s ease; }
.other:hover, .other:focus-visible { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 2px 2px rgba(0,0,0,.08), 0 26px 36px -20px rgba(0,0,0,.45); outline: none; }
.other__art { aspect-ratio: 4 / 3; }
.other__art svg { width: 100%; height: 100%; display: block; overflow: visible; }
.other__name { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 16px; font-weight: 700; }
.other__name svg { width: 20px; height: 11px; }

@media (max-width: 980px) {
  .cph__grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .stage3d { height: 520px; order: -1; max-width: 520px; width: 100%; margin: 0 auto; }
  .paths { grid-template-columns: minmax(0, 1fr); }
  .cities { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 50px; }
  .others { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .sec { padding-block: 70px; }
  .cph { padding-block: 24px 60px; }
  .stage3d { height: 430px; }
  .l-ticket { width: 240px; }
  .tk__route b { font-size: 24px; }
  .l-stamp { width: 96px; height: 96px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .path__in { padding: 22px 20px; }
  .path__num { font-size: 70px; }
  .steps { padding-right: 54px; }
  .steps__line { right: 18px; }
  .step__dot { right: -50px; width: 30px; height: 30px; }
  .cities { grid-template-columns: minmax(0, 1fr); max-width: 340px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .step__card, .tag__in { transition: none; animation: none !important; opacity: 1; transform: none; }
  .l-stamp { opacity: .85; animation: none !important; }
  .cph__title svg path { animation: none; stroke-dashoffset: 0; }
}
