/* هیروی «بارنامه‌ی زنده» صفحه‌ی اصلی آدرین — فقط روی صفحه‌ی اصلی بارگذاری می‌شود */
.hp {
  --hp-ink: #0f2a31;
  --hp-ink-2: #133841;
  --hp-mint: #7fd3c9;
  --hp-rose: #f0a6c4;
  --hp-stamp: #c2255c;
  position: relative; isolation: isolate; overflow: hidden;
  color: #e9f3f2; background: var(--hp-ink);
  padding-block: clamp(40px, 6vw, 84px) clamp(48px, 7vw, 96px);
}
.hp__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 1px 1px, rgba(127,211,201,.10) 1px, transparent 0) 0 0 / 26px 26px,
    linear-gradient(160deg, #10343c 0%, #0f2a31 55%, #0c2227 100%); }
.hp__glow { position: absolute; border-radius: 50%; opacity: .55; } /* بدون filter:blur — روی موبایل ضعیف رندر اول را چند ثانیه عقب می‌انداخت */
.hp__glow--a { width: 520px; height: 520px; inset-inline-start: -120px; top: -160px; background: radial-gradient(circle, rgba(47,123,136,.75), transparent 70%); }
.hp__glow--b { width: 460px; height: 460px; inset-inline-end: -140px; bottom: -200px; background: radial-gradient(circle, rgba(194,37,92,.35), transparent 70%); }

.hp__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }

/* ---------- متن ---------- */
.hp__kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  font-size: .86rem; font-weight: 700; line-height: 1.8; color: var(--hp-mint);
  padding: 7px 16px; border: 1px solid rgba(127,211,201,.28); border-radius: 999px; background: rgba(127,211,201,.06); }
.hp__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hp-rose); box-shadow: 0 0 0 4px rgba(240,166,196,.18); flex: none; }
.hp__title { margin: 0; font-size: clamp(1.7rem, 2vw, 3.2rem); line-height: 1.35; font-weight: 900; color: #fff; letter-spacing: -.01em; }
.hp__title em { font-style: normal; background: linear-gradient(90deg, var(--hp-mint), var(--hp-rose)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hp__lead { margin: 20px 0 0; max-width: 560px; font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 2.05; color: rgba(233,243,242,.78); }
.hp__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hp__ghost { color: #e9f3f2; border: 1px solid rgba(233,243,242,.32); background: rgba(255,255,255,.03); }
.hp__ghost:hover { border-color: var(--hp-mint); color: var(--hp-mint); }
.hp__stats { display: flex; flex-wrap: wrap; gap: clamp(22px, 3vw, 44px); margin: 38px 0 0; padding-top: 26px; border-top: 1px solid rgba(233,243,242,.12); }
.hp__stats div { display: flex; flex-direction: column; justify-content: flex-start; gap: 4px; }
.hp__stats dd { order: -1; }
.hp__stats dd { margin: 0; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 900; color: #fff; }
.hp__stats dt { font-size: .82rem; color: rgba(233,243,242,.6); }

/* ---------- کارت بارنامه ---------- */
.pass { position: relative; color: #12333b; background: #fbfaf6; border-radius: 22px;
  padding: 20px 22px 18px;
  box-shadow: 0 24px 40px -22px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06);
  transform: rotate(-1.2deg); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.pass:hover, .pass:focus-within { transform: rotate(0deg); }
/* سوراخ‌های پرفراژ بلیت */
.pass::before, .pass::after { content: ""; position: absolute; top: 47%; width: 26px; height: 26px; border-radius: 50%; background: var(--hp-ink); }
.pass::before { inset-inline-start: -13px; } .pass::after { inset-inline-end: -13px; }

.pass__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1.5px dashed #d9d5ca; }
.pass__brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pass__brand img { border-radius: 7px; }
.pass__brand b { font-size: .95rem; font-weight: 900; }
.pass__brand small { font: 600 .62rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; color: #7c8a8c; }
.pass__no { font: 700 .72rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; color: #2f7b88; background: #e8f4f3; padding: 6px 9px; border-radius: 8px; white-space: nowrap; }

.pass__pick { display: grid; gap: 10px; padding: 14px 0 6px; }
.pass__field { display: grid; grid-template-columns: 76px 1fr; align-items: start; gap: 8px; }
.pass__label { font-size: .74rem; font-weight: 700; color: #7c8a8c; padding-top: 7px; }
.pass__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; color: #1d4b56; background: #fff; border: 1px solid #d9d5ca; border-radius: 999px; padding: 5px 12px; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.chip:hover { border-color: #2f7b88; transform: translateY(-1px); }
.chip[aria-pressed="true"] { color: #fff; background: #2f7b88; border-color: #2f7b88; }
.chip:focus-visible { outline: 2px solid var(--hp-stamp); outline-offset: 2px; }

.pass__map { position: relative; margin: 8px 0 4px; border-radius: 14px; background: linear-gradient(180deg, #12333b, #0f2a31); color: var(--hp-mint); overflow: hidden; }
.pass__map svg { display: block; width: 100%; height: auto; }
.pass__iran { fill: rgba(127,211,201,.09); stroke: rgba(127,211,201,.35); stroke-width: 1; stroke-dasharray: 3 4; }
.pass__iranlbl { fill: rgba(233,243,242,.35); font-size: 13px; font-weight: 800; text-anchor: middle; }
.pass__sea { fill: none; stroke: rgba(127,211,201,.18); stroke-width: 14; stroke-linecap: round; }
.pass__sealbl { fill: rgba(233,243,242,.32); font-size: 7.5px; text-anchor: middle; }
.pass__route { fill: none; stroke: url(#hpRoute); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 4 5; }
.pass__route.is-drawing { stroke-dasharray: var(--len) var(--len); stroke-dashoffset: var(--len); animation: hp-draw var(--dur, 2.2s) cubic-bezier(.5,0,.3,1) forwards; }
@keyframes hp-draw { to { stroke-dashoffset: 0; } }
.pass__nodes circle { fill: #0f2a31; stroke: rgba(233,243,242,.55); stroke-width: 1.4; transition: fill .3s, stroke .3s, r .3s; }
.pass__nodes text { fill: rgba(233,243,242,.62); font-size: 8.5px; font-weight: 700; text-anchor: middle; }
.pass__nodes g.is-from circle { fill: var(--hp-mint); stroke: #fff; }
.pass__nodes g.is-to circle { fill: var(--hp-rose); stroke: #fff; r: 5; }
.pass__nodes g.is-from text { fill: #fff; }
.pass__mover circle { fill: #fff; stroke: rgba(127,211,201,.55); stroke-width: 4; }
.pass__mover path { fill: #12333b; }
.pass__mode { position: absolute; top: 8px; inset-inline-start: 8px; font-size: .7rem; font-weight: 800; color: #12333b; background: var(--hp-mint); padding: 3px 10px; border-radius: 999px; }

.pass__steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 12px 0 0; padding: 0; counter-reset: s; }
.pass__steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; color: #9aa6a7; text-align: center; transition: color .3s; }
.pass__steps li i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #d9d5ca; background: #fff; display: grid; place-items: center; transition: background .3s, border-color .3s, transform .3s; }
.pass__steps li::after { content: ""; position: absolute; top: 11px; inset-inline-start: calc(50% + 13px); width: calc(100% - 22px); height: 2px; background: #e4e0d6; z-index: 0; }
.pass__steps li:last-child::after { display: none; }
.pass__steps li.is-done { color: #12333b; }
.pass__steps li.is-done i { background: #2f7b88; border-color: #2f7b88; transform: scale(1.05); }
.pass__steps li.is-done i::before { content: ""; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.pass__steps li.is-done::after { background: #2f7b88; }
.pass__steps li.is-now i { border-color: #2f7b88; animation: hp-pulse 1s ease-in-out infinite; }
@keyframes hp-pulse { 50% { box-shadow: 0 0 0 6px rgba(47,123,136,.18); } }

.pass__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1.5px dashed #d9d5ca; min-height: 74px; }
.pass__docs { display: grid; gap: 2px; min-width: 0; }
.pass__docs .pass__label { padding: 0; }
.pass__docs b { font-size: .8rem; line-height: 1.8; font-weight: 700; color: #1d4b56; }
.pass__stamp { flex: none; display: grid; place-items: center; text-align: center; width: 104px; height: 104px; margin: -26px 0 -18px; border-radius: 50%;
  color: var(--hp-stamp); border: 3px double var(--hp-stamp); transform: rotate(-14deg) scale(1.9); opacity: 0;
  background: radial-gradient(circle, transparent 58%, rgba(194,37,92,.06) 59%); }
.pass__stamp b { font-size: .92rem; font-weight: 900; line-height: 1.2; }
.pass__stamp small { font-size: .62rem; font-weight: 800; line-height: 1.3; padding-inline: 8px; }
.pass__stamp.is-on { opacity: .92; transform: rotate(-14deg) scale(1); transition: transform .28s cubic-bezier(.3,1.6,.5,1), opacity .12s; }

.pass__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 14px; }
.pass__cta .btn { padding: 11px 22px; }
.pass__guide { font-size: .85rem; font-weight: 800; color: #2f7b88; text-decoration: underline; text-underline-offset: 4px; }
.pass__note { margin: 10px 0 0; font-size: .7rem; color: #8c9799; }

/* ---------- موبایل ---------- */
@media (max-width: 960px) {
  .hp__grid { grid-template-columns: 1fr; }
  .pass { transform: none; max-width: 560px; width: 100%; justify-self: center; }
}
@media (max-width: 520px) {
  .hp__kicker { font-size: .78rem; }
  .pass { padding: 16px 14px 14px; border-radius: 18px; }
  .pass__field { grid-template-columns: 1fr; gap: 4px; }
  .pass__label { padding-top: 0; }
  .pass__brand small { display: none; }
  .pass__steps li { font-size: .64rem; }
  .pass__stamp { width: 88px; height: 88px; }
  .hp__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
  .hp__stats dt { font-size: .72rem; }
  .hp__actions .btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .pass, .pass__route.is-drawing, .pass__stamp.is-on, .pass__steps li.is-now i { animation: none !important; transition: none !important; }
  .pass__route.is-drawing { stroke-dashoffset: 0; }
}

/* =====================================================================
   بخش خدمات: «یارد کانتینر» — درهای کانتینر با هاور/فوکوس/لمس باز می‌شوند
   ===================================================================== */
.yard__hint { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .82rem; font-weight: 700; color: var(--brand, #2f7b88); }
.yard__hint::before { content: ""; width: 18px; height: 12px; border: 2px solid currentColor; border-radius: 2px;
  background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 5px); opacity: .7; }
.yard__hint-touch { display: none; }
@media (hover: none) { .yard__hint-desk { display: none; } .yard__hint-touch { display: inline; } }

.yard { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px clamp(48px, 6vw, 84px); margin-top: 34px; padding-inline: clamp(24px, 3vw, 44px); }
.cbox {
  --c: #2f7b88;
  --frame: color-mix(in srgb, var(--c) 62%, #0a1214);
  position: relative; perspective: 2400px;
  border: 9px solid var(--frame); border-top-width: 12px; border-bottom-width: 14px; border-radius: 5px;
  background: var(--frame);
  box-shadow: 0 22px 30px -24px rgba(10,20,22,.55);
}
/* گوشه‌های فلزی (corner castings) */
.cbox::before, .cbox::after { content: ""; position: absolute; z-index: 4; width: 16px; height: 12px; border-radius: 2px;
  background: color-mix(in srgb, var(--c) 40%, #070d0f); box-shadow: inset 0 0 0 2px rgba(255,255,255,.08); }
.cbox::before { top: -12px; inset-inline-start: -9px; }
.cbox::after { bottom: -14px; inset-inline-end: -9px; }

/* داخل کانتینر = محتوای واقعی */
.cbox__in { position: relative; min-height: clamp(270px, 25vw, 330px); height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 10px;
  padding: clamp(16px, 2.2vw, 28px); color: #e9f3f2;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 10px, rgba(0,0,0,.18) 10px 20px),
    linear-gradient(180deg, #16292d, #0d1a1d);
  box-shadow: inset 0 0 60px rgba(0,0,0,.6); }
.cbox__in::before { content: ""; position: absolute; top: 0; inset-inline: 18%; height: 60%; pointer-events: none;
  background: radial-gradient(ellipse at top, rgba(127,211,201,.18), transparent 70%); }
.cbox__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #7fd3c9; background: rgba(127,211,201,.1); border: 1px solid rgba(127,211,201,.22); }
.cbox__icon svg { width: 24px; height: 24px; }
.cbox__in h3 { margin: 4px 0 0; font-size: clamp(1.05rem, 1.5vw, 1.25rem); font-weight: 900; color: #fff; }
.cbox__in p { margin: 0; font-size: .9rem; line-height: 1.95; color: rgba(233,243,242,.78); text-align: start; }
.cbox__in p a { color: #f0a6c4; text-decoration: underline; text-underline-offset: 3px; }
.cbox__in .link-arrow { color: #7fd3c9; margin-top: 4px; }

/* درها */
.cbox__door { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 2; transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(.2,.75,.25,1); transition-delay: 0s; }
.cbox__door--r { right: 0; transform-origin: right center; }
.cbox__door--l { left: 0; transform-origin: left center; }
.cbox__face, .cbox__back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.cbox__face {
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), transparent 18%, transparent 82%, rgba(0,0,0,.18)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.10) 0 4px, rgba(255,255,255,0) 4px 9px, rgba(0,0,0,.14) 9px 13px, rgba(0,0,0,0) 13px 18px),
    var(--c);
}
.cbox__door--r .cbox__face { border-inline-end: 1px solid rgba(0,0,0,.35); }
.cbox__back { transform: rotateY(180deg); background:
  repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 4px, transparent 4px 9px, rgba(0,0,0,.16) 9px 13px, transparent 13px 18px),
  color-mix(in srgb, var(--c) 55%, #0a1214); }
/* میله‌های قفل و دستگیره */
.cbox__rod { position: absolute; top: 4%; bottom: 4%; width: 5px; border-radius: 3px; inset-inline-start: 30%;
  background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(255,255,255,.35), rgba(0,0,0,.35)); }
.cbox__rod--2 { inset-inline-start: 66%; }
.cbox__rod::before, .cbox__rod::after { content: ""; position: absolute; left: -4px; width: 13px; height: 7px; border-radius: 2px; background: rgba(10,18,20,.55); }
.cbox__rod::before { top: 12%; } .cbox__rod::after { bottom: 12%; }
.cbox__door--r .cbox__rod--2::before { top: 46%; height: 18px; width: 22px; left: -9px; border-radius: 4px; background: rgba(10,18,20,.6); }
/* نوشته‌ها روی در */
.cbox__stencil { position: absolute; top: 12%; inset-inline: 0; text-align: center; z-index: 1;
  font-size: clamp(1.15rem, 2vw, 1.6rem); font-weight: 900; color: rgba(255,255,255,.9); letter-spacing: .02em;
  text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.cbox__code { position: absolute; top: 9%; left: 0; right: 0; text-align: center; z-index: 1;
  font: 800 clamp(.72rem, 1vw, .86rem)/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: rgba(255,255,255,.88); letter-spacing: .08em; }
.cbox__code em { display: block; font-style: normal; font-size: .85em; opacity: .75; }
.cbox__plate { position: absolute; bottom: 9%; left: 14%; right: 14%; z-index: 1; padding: 5px 4px; text-align: center;
  font: 700 .56rem/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; color: rgba(255,255,255,.75); letter-spacing: .04em; white-space: nowrap;
  border: 1px solid rgba(255,255,255,.35); border-radius: 2px; background: rgba(0,0,0,.12); }

/* باز شدن */
.cbox:hover .cbox__door--r, .cbox:focus-within .cbox__door--r, .cbox.is-open .cbox__door--r { transform: rotateY(98deg); }
.cbox:hover .cbox__door--l, .cbox:focus-within .cbox__door--l, .cbox.is-open .cbox__door--l { transform: rotateY(-98deg); transition-delay: .06s; }
.cbox.is-peek .cbox__door--r { transform: rotateY(24deg); }
.cbox.is-peek .cbox__door--l { transform: rotateY(-24deg); }
/* وقتی در بسته است لینک‌های داخل قابل کلیک نیستند؛ در باز = تعامل با محتوا */
.cbox .cbox__in { pointer-events: none; }
.cbox:hover .cbox__in, .cbox:focus-within .cbox__in, .cbox.is-open .cbox__in { pointer-events: auto; }
.cbox:hover .cbox__door, .cbox:focus-within .cbox__door, .cbox.is-open .cbox__door { pointer-events: none; }
.cbox { cursor: pointer; }

.yard__ground { height: 18px; margin-top: 14px; border-radius: 4px; opacity: .5;
  background: repeating-linear-gradient(90deg, var(--brand, #2f7b88) 0 34px, transparent 34px 58px) center / 100% 3px no-repeat,
              linear-gradient(180deg, transparent, rgba(47,123,136,.10)); }

@media (max-width: 960px) { .yard { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 56px; padding-inline: 28px; } }
@media (max-width: 600px) {
  .yard { grid-template-columns: 1fr; gap: 28px; padding-inline: 26px; }
  .cbox__in { min-height: 250px; }
  .cbox__in p { font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) {
  .cbox__door { transition: opacity .3s; }
  .cbox:hover .cbox__door, .cbox:focus-within .cbox__door, .cbox.is-open .cbox__door { transform: none !important; opacity: 0; }
  .cbox.is-peek .cbox__door { transform: none; }
}
/* درهای باز ستون‌های کناری نباید اسکرول افقی بسازند */
.yard-sec { overflow-x: hidden; overflow-x: clip; }
