/* =========================================================
   DigiGovah — Concept 02 · Metro / Transit map
   Signage system: heavy Vazirmatn, line colours, white field
   ========================================================= */

:root {
  --white: #fff;
  --ink: #22262B;
  --ink-2: #3E444B;
  --mute: #5C6269;
  --rule: #E1E3E6;
  --soft: #F4F5F6;
  --l1: #E4002B;  /* quality        */
  --l2: #00965E;  /* environment    */
  --l3: #FFC72C;  /* safety / IMS   */
  --l4: #7B3F98;  /* food           */
  --l5: #0072CE;  /* export         */
  --l6: #6B7075;  /* permits        */
  --l7: #4FB3E8;  /* medical / lab  */
  --l8: #D6457F;  /* governance     */
  --l9: #8B5A3C;  /* industry       */
  --l10: #F08A00; /* training       */
  --l11: #009B9E; /* audit          */
  --l12: #8DB600; /* hse field      */
  --l13: #2E3192; /* growth         */
  --lc: var(--ink);
  --r: 12px;
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --head-h: 72px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Vazirmatn", Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.85;
  font-feature-settings: "ss01";
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 5px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 900; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
bdi.code, .code { font-weight: 800; letter-spacing: .01em; unicode-bidi: isolate; }
:focus-visible { outline: 3px solid var(--l5); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.mute { color: var(--mute); }

/* ---------- line badges (roundels) ---------- */
.badge {
  --s: 38px;
  display: inline-grid; place-items: center; flex: none;
  width: var(--s); height: var(--s); border-radius: 50%;
  background: var(--lc); color: #fff;
  font-weight: 900; font-size: calc(var(--s) * .5); line-height: 1;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.0);
}
.badge.sm { --s: 24px; font-size: 13px; }
.badge.lg { --s: 64px; }
.l1 { --lc: var(--l1); } .l2 { --lc: var(--l2); } .l3 { --lc: var(--l3); } .l4 { --lc: var(--l4); }
.l5 { --lc: var(--l5); } .l6 { --lc: var(--l6); } .l7 { --lc: var(--l7); } .l8 { --lc: var(--l8); }
.l9 { --lc: var(--l9); } .l10 { --lc: var(--l10); } .l11 { --lc: var(--l11); } .l12 { --lc: var(--l12); }
.l13 { --lc: var(--l13); }
.badge.l3, .badge.l7, .badge.l10, .badge.l12 { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  min-height: 54px; padding: 0 24px;
  border: 3px solid var(--bg); border-radius: var(--r);
  background: var(--bg); color: var(--fg);
  font-weight: 800; font-size: 17px; text-decoration: none; cursor: pointer;
  overflow: hidden; isolation: isolate;
  transition: transform .2s var(--ease);
}
.btn::after { /* line-colour stripe that slides in */
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 6px; z-index: -1;
  background: linear-gradient(90deg, var(--l1) 0 20%, var(--l3) 0 40%, var(--l2) 0 60%, var(--l5) 0 80%, var(--l4) 0);
  transform: translateY(100%); transition: transform .25s var(--ease);
}
.btn:hover::after, .btn:focus-visible::after { transform: none; }
.btn:active { transform: scale(.98); }
.btn.ghost { --bg: transparent; --fg: var(--ink); border-color: var(--ink); }
.btn.ghost::after { display: none; }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.red { --bg: var(--l1); }
.btn .pin { width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px var(--l1); flex: none; }
.btn.ghost .pin { background: var(--white); box-shadow: 0 0 0 4px var(--l1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.tlink { font-weight: 800; color: var(--l5); text-decoration: underline; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(6px);
}
.site-head::after { /* line ribbon */
  content: ""; display: block; height: 5px;
  background: linear-gradient(90deg, var(--l1) 0 16.6%, var(--l2) 0 33.3%, var(--l3) 0 50%, var(--l4) 0 66.6%, var(--l5) 0 83.3%, var(--l6) 0);
}
.head-in { display: flex; align-items: center; gap: 24px; min-height: var(--head-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-inline-end: auto; }
.brand svg { width: 42px; height: 42px; }
.brand b { display: block; font-size: 22px; font-weight: 900; line-height: 1.1; }
.brand small { display: block; font-size: 12px; color: var(--mute); font-weight: 500; line-height: 1.3; }
.nav ul { display: flex; gap: 4px; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 10px;
  font-weight: 700; font-size: 15.5px; text-decoration: none;
}
.nav a::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 3px var(--lc, var(--ink)); flex: none;
}
.nav a:hover { background: var(--soft); }
.nav a[aria-current="page"]::before { background: var(--lc); }
.nav a[aria-current="page"]::after {
  content: "اینجایید"; position: absolute; top: -8px; inset-inline-start: 2px;
  font-size: 10.5px; font-weight: 800; line-height: 1; padding: 3px 6px; border-radius: 6px;
  background: var(--l1); color: #fff;
}
.head-cta { min-height: 46px; padding: 0 18px; font-size: 15.5px; }
.head-phone { font-weight: 800; text-decoration: none; font-size: 15px; white-space: nowrap; }
.menu-btn {
  display: none; width: 48px; height: 48px; border: 3px solid var(--ink); border-radius: 12px;
  background: #fff; cursor: pointer; padding: 0; place-items: center;
}
.menu-btn span { display: block; width: 20px; height: 3px; background: var(--ink); border-radius: 2px; box-shadow: 0 -7px 0 var(--ink), 0 7px 0 var(--ink); transition: transform .25s var(--ease), box-shadow .2s; }
.menu-btn[aria-expanded="true"] span { transform: rotate(45deg); box-shadow: 0 0 0 var(--ink), 0 0 0 var(--ink); }
.menu-btn[aria-expanded="true"] span::after { content: ""; display: block; width: 20px; height: 3px; background: var(--ink); transform: rotate(-90deg); border-radius: 2px; }

/* mobile menu = vertical line diagram */
.mnav {
  position: fixed; inset: calc(var(--head-h) + 5px) 0 0 0; z-index: 49;
  background: #fff; padding: 24px var(--gut) 120px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
}
.mnav.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mnav ol { position: relative; padding-inline-start: 42px; }
.mnav ol::before { content: ""; position: absolute; inset-inline-start: 13px; top: 18px; bottom: 18px; width: 10px; border-radius: 5px; background: var(--ink); }
.mnav li { position: relative; }
.mnav li a { display: block; padding: 12px 0; font-size: 24px; font-weight: 900; text-decoration: none; }
.mnav li a small { display: block; font-size: 14px; font-weight: 500; color: var(--mute); }
.mnav li::before { content: ""; position: absolute; inset-inline-start: -37px; top: 22px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 5px solid var(--lc, var(--ink)); }
.mnav .mnav-contact { margin-top: 24px; display: grid; gap: 10px; }

/* ---------- section scaffolding ---------- */
.sec { padding-block: clamp(64px, 9vw, 120px); }
.sec + .sec { border-top: 1px solid var(--rule); }
.sign { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.sign .badge { margin-top: 4px; }
.sign h2 { font-size: clamp(28px, 3.6vw, 46px); letter-spacing: -.01em; }
.sec-lead { max-width: 64ch; color: var(--ink-2); font-size: 18px; }
.sec-top { display: grid; gap: 20px; margin-bottom: clamp(32px, 5vw, 56px); }
@media (min-width: 900px) {
  .sec-top { grid-template-columns: 1.1fr 1fr; align-items: end; }
}

/* departure board */
.board {
  background: var(--ink); color: #fff; border-radius: 16px;
  padding: 20px 22px; position: relative; overflow: hidden;
}
.board-top { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid rgba(255,255,255,.14); }
.board-top h3, .board-top .bt { font-size: 20px; font-weight: 900; }
.board-top time, .board-top .clock { margin-inline-start: auto; font-weight: 800; color: var(--l3); font-variant-numeric: tabular-nums; }
.board dl { margin: 0; }
.board .row { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.board .row:last-child { border-bottom: 0; }
.board dt { color: #B9BEC4; font-weight: 500; font-size: 15px; }
.board dd { margin: 0; font-weight: 800; }
.board .amber { color: var(--l3); }
.board a { color: #fff; }
.board .flip { animation: flip .45s var(--ease) both; }
@keyframes flip { from { opacity: 0; transform: translateY(-40%) scaleY(.6); } to { opacity: 1; transform: none; } }

/* notice (service announcement) */
.notice {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--l3); color: var(--ink); border-radius: 14px; padding: 18px 20px;
}
.notice svg { width: 34px; height: 34px; flex: none; }
.notice b { font-weight: 900; }

/* ---------- HERO ---------- */
.hero { padding-top: clamp(28px, 5vw, 64px); padding-bottom: 32px; }
.hero-text { display: grid; gap: 24px; }
.hero h1 { font-size: clamp(34px, 6.4vw, 82px); line-height: 1.32; letter-spacing: -.02em; max-width: 13ch; }
.hero h1 em { font-style: normal; position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; inset-inline: 0; bottom: -.03em; height: .09em; border-radius: 1em; background: var(--l1); z-index: -1; }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 46ch; }
.hero-side { display: grid; gap: 22px; align-content: end; }
@media (min-width: 980px) {
  .hero-text { grid-template-columns: 1.25fr 1fr; align-items: end; gap: 48px; }
}
.trust-strip { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14.5px; color: var(--mute); font-weight: 500; }
.trust-strip span { display: inline-flex; align-items: center; gap: 6px; }
.trust-strip span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--l2); }

/* goal picker (quick tool) */
.planner-bar {
  margin-top: clamp(28px, 4vw, 48px);
  display: grid; gap: 14px;
  border-top: 3px solid var(--ink); padding-top: 18px;
}
.planner-bar h2 { font-size: 20px; font-weight: 900; }
.planner-bar h2 span { color: var(--mute); font-weight: 500; font-size: 15px; }
.goals { display: flex; gap: 8px; flex-wrap: wrap; }
.goal {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  border: 2px solid var(--ink); border-radius: 999px; background: #fff;
  font-weight: 800; font-size: 15.5px; cursor: pointer;
  transition: background .15s, color .15s, transform .15s var(--ease);
}
.goal i { display: flex; gap: 3px; }
.goal i b { width: 8px; height: 8px; border-radius: 50%; background: var(--lc); }
.goal:hover { transform: translateY(-2px); }
.goal[aria-pressed="true"] { background: var(--ink); color: #fff; }
@media (min-width: 980px) {
  .planner-bar { grid-template-columns: auto 1fr; align-items: center; gap: 24px; }
}

/* network map */
.map-shell { position: relative; margin-top: 20px; }
.netmap { width: 100%; height: auto; overflow: visible; user-select: none; -webkit-tap-highlight-color: transparent; }
.map-mob { display: none; max-width: 460px; margin-inline: auto; }
@media (max-width: 759px) {
  .map-desk { display: none; }
  .map-mob { display: block; }
}
.netmap .ln { fill: none; stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; pointer-events: stroke; cursor: pointer; transition: opacity .35s var(--ease); }
.netmap .hit { fill: none; stroke: transparent; stroke-width: 34; pointer-events: stroke; cursor: pointer; }
.netmap .st { fill: #fff; stroke-width: 5; transition: opacity .35s var(--ease); }
.netmap .pill { fill: #fff; stroke: var(--ink); stroke-width: 5; }
.netmap .term { fill: #fff; stroke: var(--ink); stroke-width: 6; }
.netmap text { font-family: "Vazirmatn", sans-serif; fill: var(--ink); font-weight: 800; font-size: 17px; transition: opacity .35s; }
.netmap .lbl-s { font-size: 13.5px; font-weight: 500; fill: var(--mute); }
.netmap .lbl-std { font-size: 15px; font-weight: 800; }
.netmap .lbl-term { font-size: 22px; font-weight: 900; }
.netmap .here rect { fill: var(--l1); }
.netmap .here text { fill: #fff; font-size: 13px; font-weight: 800; }
.netmap .here-ring { fill: none; stroke: var(--l1); stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: ring 2.2s ease-out infinite; }
@keyframes ring { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.2); opacity: 0; } }
.netmap .train { opacity: 0; transition: opacity .25s; pointer-events: none; }
.netmap .train.run { opacity: 1; }
.netmap .train .body { fill: var(--ink); }
.netmap .train .stripe { fill: var(--tc, var(--l1)); }
.netmap .train .win { fill: #fff; }
.netmap .tbadge circle { stroke: #fff; stroke-width: 3; }
.netmap .tbadge text { fill: #fff; font-size: 15px; font-weight: 900; }
.netmap .tbadge.dark text { fill: var(--ink); }
.netmap.has-focus [data-line]:not(.on) { opacity: .12; }
.netmap.has-focus .ln.on { opacity: 1; }
.netmap .term-g { transform-box: fill-box; transform-origin: center; }
.netmap .term-g.arrive { animation: arrive .7s var(--ease); }
@keyframes arrive { 40% { transform: scale(1.08); } }
/* intro choreography */
.js .netmap:not(.is-in) .ln, .js .netmap:not(.is-in) .st, .js .netmap:not(.is-in) .lbl { opacity: 0; }
.netmap.is-in:not(.intro-done) .ln { animation: lnIn .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms); }
.netmap.is-in:not(.intro-done) .st, .netmap.is-in:not(.intro-done) .lbl { animation: stIn .5s var(--ease) both; animation-delay: calc(500ms + var(--i, 0) * 60ms); }
@keyframes lnIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes stIn { from { opacity: 0; } }
.netmap.is-in.has-focus [data-line]:not(.on) { animation: none; opacity: .12; }

.map-foot { display: grid; gap: 18px; margin-top: 18px; }
@media (min-width: 980px) { .map-foot { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.legend button {
  display: flex; align-items: center; gap: 10px; text-align: start;
  padding: 8px 10px 8px 12px; border: 2px solid transparent; border-radius: 12px; background: var(--soft);
  cursor: pointer; font-weight: 800; font-size: 15px; line-height: 1.4;
  transition: border-color .15s, background .15s;
}
.legend button small { display: block; font-weight: 500; font-size: 12.5px; color: var(--mute); }
.legend button:hover { border-color: var(--lc); background: #fff; }
.legend button[aria-pressed="true"] { border-color: var(--lc); background: #fff; }
.legend .badge { --s: 34px; }

/* ---------- categories (home) ---------- */
.cat-list { display: grid; gap: 0; border-top: 3px solid var(--ink); }
.cat {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--rule); text-decoration: none;
}
.cat h3 { font-size: clamp(21px, 2.2vw, 27px); }
.cat p { grid-column: 2; color: var(--ink-2); font-size: 16px; max-width: 58ch; }
.cat .strip { grid-column: 1 / -1; position: relative; height: 30px; margin-top: 8px; }
.cat .strip::before { content: ""; position: absolute; inset-inline: 6px; top: 11px; height: 8px; border-radius: 4px; background: var(--lc); transform-origin: right; transition: transform .6s var(--ease); }
.cat .strip ol { position: relative; display: flex; justify-content: space-between; }
.cat .strip li { position: relative; width: 22px; height: 22px; margin-top: 4px; border-radius: 50%; background: #fff; border: 5px solid var(--lc); }
.cat .strip li span { position: absolute; top: 26px; inset-inline-start: 50%; transform: translateX(50%); white-space: nowrap; font-size: 13px; font-weight: 800; }
.cat .strip li:first-child span { transform: none; inset-inline-start: -2px; }
.cat .strip li:last-child span { transform: none; inset-inline-start: auto; inset-inline-end: -2px; }
.cat .strip { margin-bottom: 26px; }
.cat:hover h3 { text-decoration: underline; text-decoration-color: var(--lc); text-decoration-thickness: 4px; }
.cat .go { display: none; }
@media (min-width: 900px) {
  .cat { grid-template-columns: 64px minmax(220px, 1fr) 1.6fr; padding: 26px 0; }
  .cat .badge { --s: 52px; grid-row: span 2; }
  .cat p { grid-column: 2; }
  .cat .strip { grid-column: 3; grid-row: 1 / span 2; margin: 0 0 22px; }
}
@media (max-width: 560px) {
  .cat .strip li:not(:first-child):not(:last-child) span { display: none; }
}

/* ---------- process (home) ---------- */
.proc { position: relative; display: grid; gap: 0; counter-reset: st; }
.proc li { position: relative; padding-inline-start: 56px; padding-bottom: 28px; }
.proc li::before { /* line */
  content: ""; position: absolute; inset-inline-start: 15px; top: 12px; bottom: -12px; width: 10px; background: var(--ink); border-radius: 5px;
}
.proc li:last-child::before { display: none; }
.proc li::after { /* station */
  content: ""; position: absolute; inset-inline-start: 6px; top: 6px; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 6px solid var(--ink);
  transition: transform .4s var(--ease), background .3s;
}
.proc li.is-in::after { background: var(--l3); }
.proc li:last-child::after { width: 36px; height: 36px; inset-inline-start: 2px; top: 2px; border-radius: 12px; background: var(--ink); }
.proc h3 { font-size: 21px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.proc .dur { font-size: 13.5px; font-weight: 800; background: var(--l3); padding: 1px 10px; border-radius: 6px; }
.proc .dur.free { background: var(--l2); color: #fff; }
.proc p { color: var(--ink-2); font-size: 16px; margin-top: 4px; max-width: 46ch; }
@media (min-width: 1000px) {
  .proc { grid-template-columns: repeat(7, 1fr); gap: 0 14px; padding-top: 8px; }
  .proc li { padding: 58px 0 0; }
  .proc li::before { inset-inline-start: 0; inset-inline-end: -14px; top: 14px; bottom: auto; width: auto; height: 10px; }
  .proc li::after { top: 5px; inset-inline-start: 0; }
  .proc li:last-child::after { top: 1px; inset-inline-start: 0; }
  .proc li:last-child::before { display: block; inset-inline-end: auto; width: 12px; }
}

/* ---------- express (tender package) ---------- */
.express { background: var(--ink); color: #fff; }
.express .sign h2 { color: #fff; }
.express .sec-lead { color: #D3D7DB; }
.express-map { margin-top: 12px; }
.express-map svg { width: 100%; height: auto; }
.express-map text { font-family: "Vazirmatn", sans-serif; fill: #fff; font-weight: 800; font-size: 19px; }
.express-map .s { font-size: 14px; font-weight: 500; fill: #BFC4C9; }
.express-list { display: grid; gap: 14px; margin-top: 24px; }
.express-list li { display: flex; gap: 12px; align-items: flex-start; color: #D3D7DB; font-size: 16px; }
.express-list li b { color: #fff; }
.express .btn { --bg: #fff; --fg: var(--ink); }
.express .btn.ghost { --bg: transparent; --fg: #fff; border-color: #fff; }
.express .btn.ghost:hover { background: #fff; color: var(--ink); }
.exp-mob { display: none; }
@media (max-width: 759px) { .exp-desk { display: none; } .exp-mob { display: block; } }
@media (min-width: 980px) { .express-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; } }

/* ---------- trust ---------- */
.trust-grid { display: grid; gap: 28px; }
@media (min-width: 980px) { .trust-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; } }
.bodies { display: grid; gap: 0; border-top: 3px solid var(--ink); margin-top: 18px; }
.bodies li { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.bodies b { font-size: 20px; font-weight: 900; direction: ltr; text-align: end; }
.bodies span { color: var(--ink-2); font-size: 15.5px; }
.verify { border: 3px solid var(--ink); border-radius: 18px; padding: 24px; }
.verify h3 { font-size: 22px; margin-bottom: 8px; }
.verify form { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.verify input { flex: 1 1 200px; }
.verify .out { margin-top: 14px; font-size: 15.5px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 32px; border-top: 3px solid var(--ink); }
.stats li { padding: 18px 0 6px; border-bottom: 1px solid var(--rule); }
.stats b { display: block; font-size: clamp(34px, 4.5vw, 54px); font-weight: 900; line-height: 1.1; }
.stats span { color: var(--mute); font-size: 15px; }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(4, 1fr); } .stats li + li { padding-inline-start: 18px; border-inline-start: 1px solid var(--rule); } }

/* ---------- industries ---------- */
.plates { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.plate {
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  min-height: 132px; padding: 18px 18px 16px;
  background: var(--ink); color: #fff; border-radius: 12px; text-decoration: none;
  outline: 2px solid transparent; outline-offset: -8px;
  transition: outline-color .2s, transform .2s var(--ease);
}
.plate:hover { outline-color: rgba(255,255,255,.5); transform: translateY(-3px); }
.plate h3 { font-size: 22px; }
.plate small { display: block; font-weight: 500; color: #BFC4C9; font-size: 13.5px; margin-top: 2px; }
.plate .lines { display: flex; gap: 5px; }
.plate .badge { --s: 28px; font-size: 14px; }

/* ---------- guides ---------- */
.guides { display: grid; gap: 18px; }
@media (min-width: 760px) { .guides { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .guides { grid-template-columns: repeat(4, 1fr); } }
.guide { display: flex; flex-direction: column; gap: 10px; text-decoration: none; padding-top: 18px; border-top: 8px solid var(--lc); }
.guide .meta { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--mute); font-weight: 500; }
.guide h3 { font-size: 20px; line-height: 1.45; }
.guide p { color: var(--ink-2); font-size: 15.5px; }
.guide:hover h3 { text-decoration: underline; text-decoration-color: var(--lc); }

/* ---------- FAQ ---------- */
.faq { border-top: 3px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; align-items: center; gap: 14px; cursor: pointer; list-style: none;
  padding: 18px 0; font-size: clamp(17px, 1.7vw, 20px); font-weight: 800;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 5px solid var(--lc, var(--ink)); background: #fff;
  transition: background .2s;
}
.faq details[open] summary::before { background: var(--lc, var(--ink)); }
.faq summary::after { content: "+"; margin-inline-start: auto; font-size: 26px; font-weight: 500; line-height: 1; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 32px 22px 0; color: var(--ink-2); max-width: 70ch; }
.faq .ans p + p { margin-top: 8px; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; }
.field label, .field .lab { font-weight: 800; font-size: 15px; }
.field .hint { font-size: 13.5px; color: var(--mute); }
.inp, .field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 10px 14px;
  border: 2px solid var(--ink); border-radius: 10px; background: #fff;
  font-size: 16px; transition: box-shadow .15s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .inp:focus { outline: none; box-shadow: 0 0 0 4px rgba(0,114,206,.3); border-color: var(--l5); }
.field input[dir="ltr"] { text-align: right; }
.field.err input, .field.err select { border-color: var(--l1); box-shadow: 0 0 0 4px rgba(228,0,43,.15); }
.field .msg { font-size: 13.5px; color: var(--l1); font-weight: 700; min-height: 0; }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.ok-msg {
  display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 14px;
  background: #E8F6EF; border: 2px solid var(--l2); font-weight: 700;
}
.ok-msg svg { width: 36px; height: 36px; flex: none; }
.ok-msg[hidden] { display: none; }

.contact-grid { display: grid; gap: 36px; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: 1fr 1.25fr; gap: 64px; } }
.info-desk { display: grid; gap: 0; border-top: 3px solid var(--ink); align-content: start; }
.info-desk li { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.info-desk dt, .info-desk .k { color: var(--mute); font-size: 15px; }
.info-desk a { font-weight: 800; text-decoration: none; }
.info-desk a:hover { text-decoration: underline; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: #DADDE0; padding: 64px 0 120px; margin-top: 0; }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.foot-top { display: grid; gap: 28px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.14); }
@media (min-width: 900px) { .foot-top { grid-template-columns: 1.2fr 1fr 1fr; } }
.foot-top .brand b { color: #fff; }
.foot-top .brand small { color: #B4B9BE; }
.foot-top h2 { font-size: 18px; color: #fff; margin-bottom: 10px; }
.foot-top li { padding: 3px 0; }
.legend-foot { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px 28px; padding-block: 36px; border-bottom: 1px solid rgba(255,255,255,.14); }
.legend-foot h3 { display: flex; align-items: center; gap: 10px; font-size: 16px; color: #fff; margin-bottom: 6px; }
.legend-foot h3 .badge { --s: 28px; font-size: 14px; }
.legend-foot li { font-size: 14.5px; padding: 2px 0; padding-inline-start: 38px; position: relative; }
.legend-foot li::before { content: ""; position: absolute; inset-inline-start: 11px; top: 0; bottom: 0; width: 6px; background: var(--lc); }
.legend-foot li:last-child::before { bottom: 50%; border-radius: 0 0 3px 3px; }
.legend-foot li::after { content: ""; position: absolute; inset-inline-start: 8px; top: calc(50% - 6px); width: 12px; height: 12px; border-radius: 50%; background: var(--ink); border: 3px solid var(--lc); box-sizing: border-box; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; padding-top: 24px; font-size: 14px; color: #B4B9BE; }

/* floating contact */
.fab {
  position: fixed; inset-inline-start: 12px; bottom: 12px; z-index: 60;
  display: flex; gap: 0; border-radius: 16px; overflow: hidden;
  box-shadow: 0 0 0 3px #fff;
}
.fab a { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 16px; font-weight: 800; text-decoration: none; color: #fff; }
.fab a svg { width: 22px; height: 22px; }
.fab .wa { background: var(--l2); }
.fab .call { background: var(--ink); }
@media (min-width: 1000px) {
  .fab { inset-inline-start: auto; inset-inline-end: 20px; bottom: 20px; flex-direction: column; border-radius: 16px; }
  .fab a { padding: 0 14px; }
  .fab .call { display: none; }
}

/* breadcrumb as station line */
.crumbs { padding-top: 22px; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0; font-size: 14.5px; font-weight: 700; }
.crumbs li { display: flex; align-items: center; }
.crumbs li + li::before { content: ""; width: 28px; height: 5px; background: var(--lc, var(--ink)); margin-inline: 4px; border-radius: 3px; }
.crumbs a, .crumbs span { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.crumbs a::before, .crumbs span::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 3px var(--lc, var(--ink)); }
.crumbs [aria-current] { color: var(--mute); }
.crumbs [aria-current]::before { background: var(--lc, var(--ink)); }

/* page hero (inner pages) */
.phero { padding-block: clamp(28px, 4vw, 56px) clamp(36px, 5vw, 64px); }
.phero h1 { font-size: clamp(34px, 5.4vw, 68px); line-height: 1.15; letter-spacing: -.015em; }
.phero .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 56ch; margin-top: 14px; }

/* =========================================================
   SERVICES — line index
   ========================================================= */
.finder { position: sticky; top: calc(var(--head-h) + 5px); z-index: 20; background: #fff; padding: 14px 0 12px; border-bottom: 3px solid var(--ink); }
.finder-in { display: grid; gap: 12px; }
.search { position: relative; }
.search svg { position: absolute; inset-inline-start: 16px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); pointer-events: none; }
.search input { width: 100%; min-height: 58px; padding-inline: 50px 48px; border: 3px solid var(--ink); border-radius: 14px; font-size: 18px; font-weight: 700; background: #fff; }
.search input::placeholder { color: #8A9096; font-weight: 500; }
.search input:focus { outline: none; box-shadow: 0 0 0 4px rgba(0,114,206,.3); }
.search .clear { position: absolute; inset-inline-end: 10px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--soft); cursor: pointer; font-size: 20px; line-height: 1; }
.search .clear[hidden] { display: none; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  min-height: 40px; padding: 0 12px 0 6px; padding-inline: 6px 12px;
  border: 2px solid var(--rule); border-radius: 999px; background: #fff; cursor: pointer;
  font-weight: 800; font-size: 14px; white-space: nowrap;
}
.chip .badge { --s: 28px; font-size: 14px; }
.chip.all { padding-inline: 14px; }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.finder-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; color: var(--mute); font-weight: 700; }
@media (min-width: 980px) { .finder-in { grid-template-columns: minmax(300px, 420px) 1fr; align-items: center; } .finder-meta { grid-column: 1 / -1; } }

.express-banner {
  display: grid; gap: 14px; margin-block: 36px 8px; padding: 22px; border-radius: 18px;
  background: var(--soft); border-inline-start: 10px solid var(--l6);
}
.express-banner h2 { font-size: 22px; }
.express-banner ol { display: flex; flex-wrap: wrap; gap: 6px 0; align-items: center; font-weight: 800; font-size: 15px; }
.express-banner ol li { display: flex; align-items: center; }
.express-banner ol li + li::before { content: ""; width: 26px; height: 6px; background: var(--l6); margin-inline: 6px; border-radius: 3px; }
@media (min-width: 980px) { .express-banner { grid-template-columns: 1fr auto; align-items: center; } }

.line-block { padding-block: 40px 16px; display: grid; gap: 20px; }
.line-block + .line-block { border-top: 1px solid var(--rule); }
.line-block[hidden] { display: none; }
.line-head { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: start; }
.line-head .badge { --s: 56px; font-size: 26px; }
.line-head h2 { font-size: clamp(21px, 2vw, 25px); }
.line-head p { color: var(--ink-2); font-size: 15.5px; max-width: 60ch; margin-top: 4px; }
.line-count { grid-column: 2; font-weight: 800; font-size: 13.5px; color: var(--mute); }
@media (min-width: 980px) {
  .line-block { grid-template-columns: 320px 1fr; gap: 40px; }
  .line-head { position: sticky; top: calc(var(--head-h) + 190px); align-self: start; }
}
.stations { position: relative; display: grid; gap: 0; }
.stations::before { content: ""; position: absolute; inset-inline-start: 14px; top: 26px; bottom: 26px; width: 12px; border-radius: 6px; background: var(--lc); }
.station {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center;
  padding: 14px 0 14px 0; padding-inline-start: 56px; border-bottom: 1px solid var(--rule);
}
.station:last-child { border-bottom: 0; }
.station[hidden] { display: none; }
.station .dot { position: absolute; inset-inline-start: 6px; top: 20px; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 6px solid var(--lc); }
.station.is-core .dot { inset-inline-start: 2px; top: 16px; width: 36px; height: 36px; border-color: var(--ink); border-width: 6px; box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 12px var(--lc); }
.station h3 { font-size: 18px; font-weight: 800; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.station .code { font-weight: 900; }
.station p { color: var(--ink-2); font-size: 15px; grid-column: 1; line-height: 1.75; }
.st-body { display: grid; gap: 2px; }
.st-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-top: 4px; }
.st-meta:empty { display: none; }
.core-tag { font-size: 12.5px; font-weight: 800; background: var(--l3); padding: 0 8px; border-radius: 6px; }
.xfer { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--mute); }
.st-go { align-self: center; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 10px; font-weight: 800; font-size: 14px; text-decoration: none; white-space: nowrap; }
.st-go:hover { background: var(--ink); color: #fff; }
.station mark { background: var(--l3); color: inherit; border-radius: 3px; padding: 0 1px; }
@media (max-width: 560px) {
  .station { grid-template-columns: 1fr; }
  .st-go { justify-self: start; }
}
.empty { padding: 48px 0; text-align: center; display: grid; gap: 14px; justify-items: center; }
.empty[hidden] { display: none; }
.empty svg { width: 160px; }

/* =========================================================
   ISO 9001 — strip map + branch
   ========================================================= */
.iso-hero { display: grid; gap: 32px; }
@media (min-width: 980px) { .iso-hero { grid-template-columns: 1.2fr 1fr; align-items: end; } }
.iso-title { display: flex; gap: 18px; align-items: flex-start; }
.iso-title .badge { --s: 72px; font-size: 34px; margin-top: 6px; }

.strip-sec { padding-block: 56px 72px; }
.lstrip { position: relative; margin-top: 28px; }
.strip-track { position: relative; }
.lstrip ol { position: relative; display: grid; grid-template-columns: repeat(9, 1fr); }
.lstrip ol::before { content: ""; position: absolute; inset-inline: 2%; top: 136px; height: 14px; border-radius: 7px; background: var(--l1); }
.lstrip li { position: relative; }
.stop {
  position: relative; display: block; width: 100%; height: 196px;
  border: 0; background: none; cursor: pointer; padding: 0; color: inherit;
}
.stop .nm {
  position: absolute; bottom: 72px; inset-inline-start: calc(50% - 6px);
  transform-origin: 100% 100%; transform: rotate(36deg);
  white-space: nowrap; font-weight: 800; font-size: 15px; text-align: start; line-height: 1.2;
}
.stop .dot { position: absolute; top: 127px; inset-inline-start: calc(50% - 16px); width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 6px solid var(--l1); transition: transform .25s var(--ease), background .2s; }
.stop .n { position: absolute; top: 168px; inset-inline-start: 0; inset-inline-end: 0; text-align: center; font-size: 13px; font-weight: 800; color: var(--mute); }
.stop:hover .dot { transform: scale(1.15); }
.stop[aria-selected="true"] .dot { background: var(--l1); box-shadow: inset 0 0 0 5px #fff; }
.stop[aria-selected="true"] .nm { color: var(--l1); }
.stop.passed .dot { background: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 5px #fff; }
.lstrip .train-x {
  position: absolute; top: 118px; inset-inline-start: 0; width: calc(100% / 9); height: 0; pointer-events: none;
  transform: translateX(calc(var(--x, 0) * -100%)); transition: transform .8s var(--ease);
}
.lstrip .train-x span {
  position: absolute; inset-inline-start: calc(50% - 30px); top: 46px; width: 60px; height: 28px;
  background: var(--ink); border-radius: 14px; display: grid; place-items: center;
  color: #fff; font-size: 12px; font-weight: 800;
}
.lstrip .train-x span::after { content: ""; position: absolute; top: -12px; inset-inline-start: calc(50% - 6px); border: 6px solid transparent; border-bottom-color: var(--ink); }
.stop[aria-selected="true"] .n { opacity: 0; }
.stop-panel { margin-top: 18px; display: grid; gap: 24px; padding: 26px; border: 3px solid var(--ink); border-radius: 18px; }
.stop-panel h3 { font-size: clamp(22px, 2.5vw, 30px); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.stop-panel .k { font-size: 13.5px; font-weight: 800; color: var(--mute); margin-bottom: 4px; }
.stop-panel .cols { display: grid; gap: 18px; }
.stop-panel ul li { position: relative; padding-inline-start: 18px; }
.stop-panel ul li::before { content: ""; position: absolute; inset-inline-start: 0; top: .75em; width: 8px; height: 8px; border-radius: 50%; background: var(--l1); }
.stop-panel .anim { animation: flip .4s var(--ease) both; }
@media (min-width: 900px) { .stop-panel .cols { grid-template-columns: 1.3fr 1fr 1fr; } }
.strip-nav { display: flex; gap: 8px; }
.strip-nav button { min-height: 44px; padding: 0 16px; border: 2px solid var(--ink); background: #fff; border-radius: 10px; font-weight: 800; cursor: pointer; }
.strip-nav button:disabled { opacity: .35; cursor: default; }
@media (max-width: 899px) {
  .lstrip ol { grid-template-columns: 1fr; }
  .lstrip ol::before { inset-inline: auto; inset-inline-start: 17px; top: 20px; bottom: 20px; width: 12px; height: auto; }
  .stop { height: auto; min-height: 58px; display: flex; align-items: center; gap: 14px; padding-inline-start: 56px; text-align: start; }
  .stop .nm { position: static; transform: none; white-space: normal; font-size: 17px; }
  .stop .dot { top: calc(50% - 16px); inset-inline-start: 7px; }
  .stop .n { position: static; order: -1; width: auto; font-size: 13px; }
  .lstrip .train-x { display: none; }
  .stop[aria-selected="true"] .n { opacity: 1; }
}

/* clause branch */
.branch { display: grid; gap: 28px; }
@media (min-width: 980px) { .branch { grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; } }
.branch-map svg { width: 100%; height: auto; }
.branch-map text { font-family: "Vazirmatn", sans-serif; font-weight: 800; font-size: 16px; fill: var(--ink); }
.branch-map .skip-st text { fill: var(--mute); font-weight: 500; font-size: 14px; }
.branch-map .cl { cursor: pointer; }
.branch-map .cl circle { fill: #fff; stroke: var(--l1); stroke-width: 6; transition: fill .2s; }
.branch-map .cl:hover circle, .branch-map .cl:focus-visible circle { fill: #FBD4DC; }
.branch-map .cl[aria-pressed="true"] circle { fill: var(--l1); }
.branch-map .cl:focus { outline: none; }
.branch-map .cl:focus-visible circle { stroke: var(--l5); }
.clause-card { border-top: 10px solid var(--l1); padding-top: 20px; }
.clause-card .num { font-size: 72px; font-weight: 900; line-height: 1; color: var(--l1); }
.clause-card h3 { font-size: 28px; margin: 8px 0 10px; }
.clause-card ul { margin-top: 14px; display: grid; gap: 6px; }
.clause-card li { position: relative; padding-inline-start: 20px; color: var(--ink-2); }
.clause-card li::before { content: ""; position: absolute; inset-inline-start: 0; top: .7em; width: 10px; height: 4px; background: var(--l1); border-radius: 2px; }

/* principles pictograms */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 600px) { .principles { grid-template-columns: repeat(4, 1fr); } }
.principles li { display: grid; gap: 12px; padding: 16px; border: 2px solid var(--rule); border-radius: 14px; }
.principles svg { width: 54px; height: 54px; }
.principles b { font-size: 16.5px; line-height: 1.5; }

/* destinations */
.dest { display: grid; border-top: 3px solid var(--ink); }
.dest li { display: grid; grid-template-columns: 44px 1fr; gap: 6px 14px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.dest li svg { width: 40px; height: 40px; grid-row: span 2; }
.dest b { font-size: 18px; }
.dest span { color: var(--ink-2); font-size: 15.5px; grid-column: 2; }

.two-col { display: grid; gap: 40px; }
@media (min-width: 980px) { .two-col { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* timetable */
.timetable { width: 100%; border-collapse: collapse; font-size: 16px; }
.timetable caption { text-align: start; font-weight: 800; margin-bottom: 10px; }
.timetable th, .timetable td { text-align: start; padding: 14px 10px; border-bottom: 1px solid var(--rule); }
.timetable thead th { background: var(--ink); color: #fff; font-weight: 800; font-size: 14.5px; }
.timetable thead th:first-child { border-start-start-radius: 10px; }
.timetable thead th:last-child { border-start-end-radius: 10px; }
.timetable td b { font-weight: 900; }
.timetable .bar { display: block; height: 10px; border-radius: 5px; background: var(--l1); margin-top: 6px; transform-origin: right; }
.tt-wrap { overflow-x: auto; }

/* fare factors */
.fares { display: grid; gap: 0; counter-reset: f; border-top: 3px solid var(--ink); }
.fares li { display: grid; grid-template-columns: 70px 1fr; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.fares .zone { grid-row: span 2; display: grid; place-items: center; height: 46px; border-radius: 10px; border: 3px solid var(--ink); font-weight: 900; font-size: 13px; text-align: center; line-height: 1.2; }
.fares b { font-size: 17.5px; }
.fares span { color: var(--ink-2); font-size: 15.5px; }

/* doc checklist ticket */
.docs { display: grid; gap: 0; border: 3px solid var(--ink); border-radius: 18px; overflow: hidden; }
.docs li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 20px; border-bottom: 2px dashed var(--rule); }
.docs li:last-child { border-bottom: 0; }
.docs svg { width: 26px; height: 26px; flex: none; margin-top: 3px; }

/* =========================================================
   START — journey planner
   ========================================================= */
.planner { display: grid; gap: 24px; padding-bottom: 80px; }
@media (min-width: 1000px) { .planner { grid-template-columns: 280px 1fr; gap: 48px; align-items: start; } }
.rail { position: relative; }
@media (min-width: 1000px) { .rail { position: sticky; top: calc(var(--head-h) + 24px); } }
.rail ol { position: relative; display: grid; gap: 0; }
.rail ol::before { content: ""; position: absolute; inset-inline-start: 13px; top: 16px; bottom: 16px; width: 10px; border-radius: 5px; background: var(--rule); }
.rail .prog { position: absolute; inset-inline-start: 13px; top: 16px; width: 10px; border-radius: 5px; background: var(--ink); height: calc(100% - 32px); transform-origin: top; transform: scaleY(var(--p, 0)); transition: transform .6s var(--ease); }
.rail li { position: relative; display: flex; align-items: center; gap: 14px; min-height: 52px; padding-inline-start: 46px; font-weight: 700; color: var(--mute); }
.rail li::before { content: ""; position: absolute; inset-inline-start: 4px; top: calc(50% - 14px); width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 6px solid var(--rule); box-sizing: border-box; transition: border-color .3s, background .3s; }
.rail li.done { color: var(--ink); }
.rail li.done::before { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 4px #fff; }
.rail li.cur { color: var(--ink); font-weight: 900; }
.rail li.cur::before { border-color: var(--l1); }
.rail li.cur::after { content: "شما اینجایید"; margin-inline-start: auto; font-size: 12px; font-weight: 800; background: var(--l1); color: #fff; padding: 2px 8px; border-radius: 6px; }
.rail li small { display: block; font-weight: 500; font-size: 13px; color: var(--mute); }
.rail-sum { font-size: 14px; }
@media (max-width: 999px) {
  .rail ol { display: flex; justify-content: space-between; }
  .rail ol::before, .rail .prog { inset-inline: 14px; top: 12px; bottom: auto; width: auto; height: 10px; }
  .rail .prog { transform-origin: right; transform: scaleX(var(--p, 0)); }
  .rail li { padding: 40px 0 0; min-height: 0; font-size: 12px; flex-direction: column; justify-content: flex-start; text-align: center; width: 34px; gap: 0; }
  .rail li::before { inset-inline-start: calc(50% - 14px); top: 3px; }
  .rail li span { display: none; }
  .rail li.cur span { display: block; position: absolute; top: 36px; white-space: nowrap; font-size: 13px; }
  .rail li.cur::after { display: none; }
  .rail li:first-child.cur span { inset-inline-start: 0; }
  .rail li:last-child.cur span { inset-inline-end: 0; }
  .rail { padding-bottom: 32px; }
}

.route-card {
  display: grid; grid-template-columns: 28px 1fr; gap: 0 14px; align-items: center;
  padding: 16px 18px; border: 3px solid var(--ink); border-radius: 18px; margin-bottom: 26px;
}
.route-card .o, .route-card .d { width: 18px; height: 18px; border-radius: 50%; justify-self: center; }
.route-card .o { border: 5px solid var(--ink); background: #fff; }
.route-card .d { background: var(--l1); border-radius: 4px; transform: rotate(45deg); width: 16px; height: 16px; }
.route-card .via { width: 5px; height: 26px; justify-self: center; background: repeating-linear-gradient(var(--ink) 0 5px, transparent 5px 9px); }
.route-card .k { font-size: 13px; color: var(--mute); font-weight: 700; }
.route-card .v { font-weight: 900; font-size: 17px; line-height: 1.5; }
.route-card .vrow { padding-block: 4px; }

.step { display: none; }
.step.on { display: block; animation: stepIn .45s var(--ease) both; }
@keyframes stepIn { from { opacity: 0; transform: translateX(-24px); } }
.step legend, .step .q { font-size: clamp(24px, 3vw, 36px); font-weight: 900; line-height: 1.35; padding: 0; margin-bottom: 6px; }
.step fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.step .help { color: var(--ink-2); margin-bottom: 20px; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt span {
  display: grid; gap: 4px; min-height: 84px; height: 100%; padding: 14px 16px; padding-inline-start: 48px;
  border: 2px solid var(--rule); border-radius: 14px; background: #fff; transition: border-color .15s, background .15s; position: relative;
}
.opt span::before { content: ""; position: absolute; inset-inline-start: 14px; top: 17px; width: 22px; height: 22px; border-radius: 50%; border: 5px solid var(--rule); background: #fff; box-sizing: border-box; transition: border-color .15s, background .15s; }
.opt b { font-size: 17px; font-weight: 800; }
.opt small { color: var(--mute); font-size: 13.5px; line-height: 1.6; }
.opt input:hover + span { border-color: var(--ink); }
.opt input:checked + span { border-color: var(--ink); background: var(--soft); }
.opt input:checked + span::before { border-color: var(--ink); background: var(--l1); }
.opt input:focus-visible + span { outline: 3px solid var(--l5); outline-offset: 2px; }
.opt input[type="checkbox"] + span::before { border-radius: 6px; }
.opt .tagline { display: flex; gap: 4px; margin-top: 2px; }
.opt .tagline .badge { --s: 20px; font-size: 11px; }

.sites { display: flex; align-items: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; }
.stepper button { width: 48px; height: 48px; border: 0; background: #fff; font-size: 22px; font-weight: 800; cursor: pointer; }
.stepper button:hover { background: var(--soft); }
.stepper output { min-width: 48px; text-align: center; font-weight: 900; font-size: 19px; }

.xfer-group { margin-top: 18px; }
.xfer-group h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; margin-bottom: 8px; }
.xfer-group .badge { --s: 28px; font-size: 14px; }
.tchips { display: flex; flex-wrap: wrap; gap: 6px; }
.tchip { position: relative; }
.tchip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; width: 100%; height: 100%; }
.tchip span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 2px solid var(--rule); border-radius: 999px; font-size: 14.5px; font-weight: 700; background: #fff; }
.tchip span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 3px solid var(--lc); background: #fff; }
.tchip input:checked + span { border-color: var(--lc); background: var(--lc); color: #fff; }
.tchip.dark input:checked + span { color: var(--ink); }
.tchip input:checked + span::before { background: #fff; border-color: #fff; }
.tchip input:focus-visible + span { outline: 3px solid var(--l5); outline-offset: 2px; }
.rec-note { margin-bottom: 14px; padding: 12px 16px; border-radius: 12px; background: var(--soft); font-size: 15.5px; }
details.more { margin-top: 18px; border-top: 2px solid var(--rule); }
details.more > summary { cursor: pointer; padding: 14px 0; font-weight: 800; list-style: none; display: flex; gap: 8px; align-items: center; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "+"; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 18px; }
details.more[open] > summary::before { content: "−"; }

.wiz-nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 28px; padding-top: 20px; border-top: 2px solid var(--rule); }
.wiz-err { color: var(--l1); font-weight: 800; margin-top: 12px; min-height: 1.5em; }

/* result */
.result-top { display: grid; gap: 20px; }
@media (min-width: 860px) { .result-top { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.route-map { margin-top: 28px; }
.route-map .seg { position: relative; display: grid; grid-template-columns: max-content 1fr; align-items: center; gap: 2px 14px; padding: 0 0 22px; padding-inline-start: 56px; }
.route-map .seg::before { content: ""; position: absolute; inset-inline-start: 15px; top: 14px; bottom: -14px; width: 12px; background: var(--rc, var(--l1)); border-radius: 6px; }
.route-map .seg:last-child::before { display: none; }
.route-map .seg::after { content: ""; position: absolute; inset-inline-start: 6px; top: 6px; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 6px solid var(--ink); box-sizing: border-box; }
.route-map .seg.x::after { border-radius: 10px; width: 30px; height: 30px; }
.route-map .seg:last-child::after { background: var(--ink); box-shadow: inset 0 0 0 5px #fff; }
.route-map b { font-size: 18px; }
.route-map .w { font-weight: 900; font-size: 14px; white-space: nowrap; background: var(--l3); border-radius: 6px; padding: 0 8px; justify-self: start; }
.route-map p { grid-column: 1 / -1; color: var(--ink-2); font-size: 15px; }
.route-map .xf { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.route-map .xf span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; padding: 2px 10px 2px 4px; border-radius: 999px; background: var(--soft); }
.route-map .seg { opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease); transition-delay: calc(var(--i) * 90ms); }
.route-map.in .seg { opacity: 1; transform: none; }
.why { margin-top: 30px; display: grid; gap: 10px; }
.why li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.why .badge { --s: 30px; font-size: 14px; }

/* ticket */
.ticket {
  --notch: 18px;
  position: relative; display: grid; margin-top: 40px;
  border-radius: 20px; background: #fff; border: 3px solid var(--ink);
}
.ticket-main { padding: 26px; }
.ticket-stub { padding: 22px 26px; background: var(--ink); color: #fff; border-radius: 0 0 16px 16px; position: relative; display: grid; gap: 10px; align-content: start; }
.ticket-stub::before { /* perforation */
  content: ""; position: absolute; inset-inline: 18px; top: -2px; border-top: 3px dashed #fff;
}
.ticket-stub .k { color: #B9BEC4; font-size: 13px; }
.ticket-stub .v { font-weight: 900; font-size: 18px; }
.ticket-stub .code-big { font-size: 28px; font-weight: 900; letter-spacing: .04em; color: var(--l3); direction: ltr; text-align: end; }
.ticket::before, .ticket::after { content: ""; position: absolute; width: calc(var(--notch) * 2); height: calc(var(--notch) * 2); border-radius: 50%; background: #fff; border: 3px solid var(--ink); z-index: 2; }
.ticket h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 6px; }
.ticket .punch { position: absolute; inset-inline-end: 34px; bottom: 26px; width: 92px; height: 92px; opacity: 0; transform: scale(1.6) rotate(-12deg); transition: opacity .3s, transform .45s var(--ease); pointer-events: none; }
.ticket.validated .punch { opacity: 1; transform: rotate(-12deg); }
@media (min-width: 900px) {
  .ticket { grid-template-columns: 1fr 280px; }
  .ticket-stub { border-radius: 0 16px 16px 0; border-radius: 16px 0 0 16px; }
  .ticket-stub::before { inset-inline: auto; inset-inline-start: -2px; top: 18px; bottom: 18px; border-top: 0; border-inline-start: 3px dashed #fff; }
  .ticket::before, .ticket::after { inset-inline-end: calc(280px - var(--notch) - 1px); }
  .ticket::before { top: calc(var(--notch) * -1 - 3px); clip-path: inset(50% 0 0 0); }
  .ticket::after { bottom: calc(var(--notch) * -1 - 3px); clip-path: inset(0 0 50% 0); }
}
@media (max-width: 899px) {
  .ticket::before, .ticket::after { display: none; }
}

/* reveal for strips only */
.js [data-reveal] .rv { opacity: 0; transform: scale(.4); transition: opacity .4s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].is-in .rv { opacity: 1; transform: none; }
.js .cat[data-reveal] .strip::before { transform: scaleX(0); }
.js .cat[data-reveal].is-in .strip::before { transform: none; }

/* ---------- responsive header ---------- */
@media (max-width: 1099px) {
  .nav, .head-phone { display: none; }
  .menu-btn { display: grid; }
}
@media (max-width: 520px) {
  .head-cta { display: none; }
  .brand small { display: none; }
}
@media (min-width: 1100px) { .mnav { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .netmap .here-ring { display: none; }
}
@media print { .site-head, .fab, .site-foot, .mnav { display: none; } }

/* map colour classes */
.netmap .c1 { stroke: var(--l1); } .netmap .c2 { stroke: var(--l2); } .netmap .c3 { stroke: var(--l3); }
.netmap .c4 { stroke: var(--l4); } .netmap .c5 { stroke: var(--l5); } .netmap .c6 { stroke: var(--l6); }
.netmap .f1 { fill: var(--l1); } .netmap .f2 { fill: var(--l2); } .netmap .f3 { fill: var(--l3); }
.netmap .f4 { fill: var(--l4); } .netmap .f5 { fill: var(--l5); } .netmap .f6 { fill: var(--l6); }
.netmap .train .body { fill: var(--tc, var(--ink)); stroke: #fff; stroke-width: 3; }
.h1-k { display: block; font-size: clamp(16px, 1.6vw, 20px); font-weight: 800; color: var(--mute); letter-spacing: 0; margin-bottom: 14px; }
.verify { align-self: start; }
@media (max-width: 560px) {
  .board { padding: 16px; }
  .board .row { grid-template-columns: 6.5em 1fr; gap: 8px; font-size: 15px; }
  .legend { grid-template-columns: 1fr 1fr; }
  .legend button { padding: 8px; gap: 8px; font-size: 14px; }
  .legend button small { font-size: 11.5px; }
  .legend .badge { --s: 28px; font-size: 14px; }
}
[hidden] { display: none !important; }

/* ---- compact desktop hero: map inside the first viewport ---- */
@media (min-width: 980px) {
  .hero { padding-top: 18px; padding-bottom: 24px; }
  .hero-text { grid-template-columns: 1fr; gap: 12px; }
  .hero h1 { font-size: clamp(40px, 3.7vw, 58px); line-height: 1.3; max-width: none; }
  .h1-k { font-size: 16px; margin-bottom: 2px; }
  .hero-side { grid-template-columns: 1fr auto; align-items: center; gap: 6px 32px; }
  .hero .lead { font-size: 17px; max-width: 70ch; line-height: 1.75; }
  .hero-side .btn-row { grid-column: 2; grid-row: 1 / span 2; flex-wrap: nowrap; }
  .hero-side .trust-strip { grid-column: 1; }
  .planner-bar { margin-top: 18px; padding-top: 12px; gap: 6px 28px; }
  .planner-bar h2 { font-size: 18px; line-height: 1.4; }
  .planner-bar h2 span { display: block; font-size: 13.5px; }
  .goal { min-height: 40px; padding: 0 14px; font-size: 15px; }
  .map-shell { margin-top: 6px; }
  .map-desk { max-height: max(360px, calc(100vh - 395px)); margin-inline: auto; }
}
