:root {
    --bg: #f5f6fa; --surface: #fff; --text: #0f172a; --muted: #64748b; --border: rgba(15, 23, 42, .08);
    --navy: #0a1020; --navy-2: #121a33;
    --amber: #f59e0b; --grad: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
    --ease: cubic-bezier(.2, .8, .2, 1);
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root { --bg: #070b16; --surface: #10172b; --text: #e8ebf5; --muted: #94a0bd; --border: rgba(255, 255, 255, .08); color-scheme: dark; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; scroll-padding-top: 80px; }
body { margin: 0; font-family: Vazirmatn, Tahoma, sans-serif; background: var(--bg); color: var(--text); line-height: 1.8; font-size: 15px; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 20px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 14px; font-weight: 700; font-size: 15px; transition: transform .25s var(--ease), box-shadow .25s, background .25s; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { color: #1a1205; background: var(--grad); box-shadow: 0 12px 28px -10px rgba(249, 115, 22, .75); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(249, 115, 22, .9); }
.btn-ghost { color: #fff; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); }
.btn-ghost:hover { background: rgba(255, 255, 255, .13); transform: translateY(-2px); }

/* ---------- Navbar ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px); transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.nav.scrolled { background: rgba(10, 16, 32, .78); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 10px 30px -15px rgba(0, 0, 0, .6); }
.nav-in { display: flex; align-items: center; gap: 16px; height: 72px; color: #fff; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 17px; }
.logo-mark { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #1a1205; background: var(--grad); box-shadow: 0 8px 22px -6px rgba(249, 115, 22, .7); }
.links { display: flex; gap: 4px; margin-inline-start: auto; }
.links a { padding: 7px 14px; border-radius: 999px; color: rgba(255, 255, 255, .72); font-size: 14px; transition: background .2s, color .2s; }
.links a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-cta { padding: 8px 16px; border-radius: 12px; font-size: 13px; font-weight: 700; border: 1px solid rgba(255, 255, 255, .18); color: #fff; transition: background .2s; }
.nav-cta:hover { background: rgba(255, 255, 255, .1); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 600px at 80% -10%, #1b2550 0%, transparent 60%), var(--navy); padding: calc(72px + env(safe-area-inset-top, 0px)) 0 150px; }
.grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); }
.glow { position: absolute; border-radius: 50%; filter: blur(100px); pointer-events: none; }
.g1 { width: 480px; height: 480px; background: rgba(249, 115, 22, .32); top: -160px; left: -120px; animation: float 14s ease-in-out infinite; }
.g2 { width: 420px; height: 420px; background: rgba(59, 130, 246, .28); bottom: -200px; right: -100px; animation: float 18s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translate(40px, 30px) scale(1.1); } }

.hero-in { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; padding-top: 48px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: rgba(255, 255, 255, .85); }
.live { width: 8px; height: 8px; border-radius: 50%; background: #34d399; animation: live 1.8s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
.hero h1 { font-size: clamp(36px, 6.4vw, 68px); font-weight: 900; margin: 18px 0 6px; line-height: 1.25; letter-spacing: -.02em; }
.hero h1::after { content: ""; display: block; width: 84px; height: 6px; margin-top: 14px; border-radius: 99px; background: var(--grad); }
.lead { margin: 14px 0 0; max-width: 520px; color: rgba(255, 255, 255, .72); font-size: clamp(16px, 2.2vw, 20px); font-weight: 500; }
.hero-loc { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; color: #fcd34d; font-weight: 600; }
.hero-loc svg { width: 18px; height: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-text > * { animation: rise .8s var(--ease) both; }
.hero-text > :nth-child(2) { animation-delay: .08s; } .hero-text > :nth-child(3) { animation-delay: .16s; }
.hero-text > :nth-child(4) { animation-delay: .24s; } .hero-text > :nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* scene */
.scene { position: relative; aspect-ratio: 5 / 4; max-width: 100%; border-radius: 28px; overflow: hidden;
    background: linear-gradient(180deg, #1e2a5a 0%, #2b2458 45%, #5b2f4f 75%, #8a4a3a 100%);
    border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .1);
    animation: rise 1s .2s var(--ease) both; }
.sun { position: absolute; width: 34%; aspect-ratio: 1; border-radius: 50%; left: 14%; top: 26%; background: radial-gradient(circle, #fde68a 0%, #fbbf24 45%, rgba(249, 115, 22, 0) 70%); filter: blur(2px); opacity: .9; }
.scene svg { stroke: none; }
.mountains { position: absolute; left: 0; right: 0; bottom: 26%; width: 100%; height: 34%; }
.road { position: absolute; left: 0; right: 0; bottom: 0; height: 27%; background: linear-gradient(180deg, #1f2433, #141824); border-top: 3px solid #2d3448; overflow: hidden; }
.dash { position: absolute; top: 46%; left: 0; width: 200%; height: 5px; background: repeating-linear-gradient(90deg, #fbbf24 0 40px, transparent 40px 90px); opacity: .8; animation: road 1.1s linear infinite; }
@keyframes road { to { transform: translateX(90px); } }
.truck { position: absolute; width: 74%; height: auto; left: 13%; bottom: 13%; animation: bob .5s ease-in-out infinite alternate; filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .4)); }
@keyframes bob { to { transform: translateY(-2px); } }
.wheel { animation: spin .55s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.float-chip { position: absolute; display: flex; flex-direction: column; padding: 10px 16px; border-radius: 16px; background: rgba(10, 16, 32, .6); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .6); animation: chip 5s ease-in-out infinite; }
.float-chip span { font-size: 12px; color: rgba(255, 255, 255, .65); }
.float-chip b { font-size: 20px; font-weight: 900; line-height: 1.4; }
.float-chip b::after { content: " تومان"; font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, .55); }
.c1 { top: 7%; right: 6%; }
.c2 { top: 7%; left: 6%; animation-delay: -2.5s; }
@keyframes chip { 50% { transform: translateY(-8px); } }

/* ---------- Rate cards ---------- */
.rates-wrap { position: relative; z-index: 3; margin-top: -100px; }
.rates { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.rate { position: relative; padding: 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border);
    box-shadow: 0 30px 60px -30px rgba(15, 23, 42, .45); transition: transform .35s var(--ease), box-shadow .35s; overflow: hidden; }
.rate::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad); opacity: 0; transition: opacity .3s; }
.rate:hover { transform: translateY(-4px); box-shadow: 0 36px 70px -30px rgba(249, 115, 22, .45); }
.rate:hover::before { opacity: 1; }
.rate-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.rate-head h2 { font-size: 16px; margin: 0; line-height: 1.4; }
.rate-head div span { font-size: 12px; color: var(--muted); }
.flag { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; font-size: 26px; background: rgba(148, 163, 184, .14); flex-shrink: 0; }
.flag.accent { background: var(--grad); color: #1a1205; }
.trend { margin-inline-start: auto; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.trend.high { color: #059669; background: rgba(16, 185, 129, .12); }
.trend.low { color: #dc2626; background: rgba(239, 68, 68, .12); }
.price b { font-size: clamp(34px, 5vw, 44px); font-weight: 900; letter-spacing: -.01em; }
.price small { color: var(--muted); font-size: 14px; margin-inline-start: 4px; }
.price.loading { color: var(--muted); font-size: 18px; }
.range { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); font-size: 13px; color: var(--muted); }
.range b { color: var(--text); font-weight: 700; }

.conv-input { display: flex; gap: 8px; }
.conv-input input, .conv-input select { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.conv-input input { flex: 1; font-size: 20px; font-weight: 700; direction: ltr; text-align: left; }
.conv-input input:focus, .conv-input select:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px rgba(245, 158, 11, .2); }
.conv-out { margin-top: 12px; display: grid; gap: 8px; }
.conv-out div { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 12px; border-radius: 10px; background: rgba(245, 158, 11, .08); }
.conv-out span { color: var(--muted); font-size: 13px; }
.conv-out b { font-size: 18px; }

.meta { margin: 18px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.meta a { color: var(--amber); font-weight: 600; }
.warn { display: inline-block; margin-inline-start: 8px; padding: 2px 10px; border-radius: 999px; background: rgba(245, 158, 11, .15); color: #b45309; }

/* ---------- Sections ---------- */
.section { padding-block: 88px 0; }
.section-head { text-align: center; margin: 0 auto 40px; max-width: 720px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 800; color: #c2410c; background: rgba(249, 115, 22, .12); padding: 4px 14px; border-radius: 999px; }
.kicker.light { color: #fcd34d; background: rgba(251, 191, 36, .14); }
.section-head h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 900; margin: 12px 0 0; letter-spacing: -.01em; line-height: 1.4; }
.about { margin: 14px 0 0; color: var(--muted); font-size: 16px; line-height: 2.1; }
@media (prefers-color-scheme: dark) { .kicker { color: #fdba74; } }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.feature { position: relative; padding: 28px 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 14px 34px -22px rgba(15, 23, 42, .4); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.feature:hover { transform: translateY(-6px); border-color: rgba(249, 115, 22, .35); box-shadow: 0 26px 50px -26px rgba(249, 115, 22, .55); }
.f-ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #1a1205; background: var(--grad); box-shadow: 0 12px 24px -10px rgba(249, 115, 22, .8); flex-shrink: 0; }
.f-ic svg { width: 26px; height: 26px; }
.f-ic.sm { width: 44px; height: 44px; border-radius: 13px; }
.f-ic.sm svg { width: 21px; height: 21px; }
.feature h3 { margin: 18px 0 6px; font-size: 18px; font-weight: 800; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; line-height: 2; }

.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; margin-top: 18px; }
.service { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; font-weight: 600; background: var(--surface); border: 1px solid var(--border); }
.check { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #1a1205; background: var(--grad); flex-shrink: 0; }
.check svg { width: 16px; height: 16px; stroke-width: 3; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; position: relative; }
.steps::before { content: ""; position: absolute; top: 30px; right: 12%; left: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--amber) 0 10px, transparent 10px 20px); opacity: .5; }
.steps li { position: relative; text-align: center; padding: 0 8px; }
.num { position: relative; display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; font-size: 24px; font-weight: 900; color: #1a1205; background: var(--grad); box-shadow: 0 0 0 8px var(--bg), 0 14px 26px -10px rgba(249, 115, 22, .8); }
.steps h3 { margin: 0 0 4px; font-size: 17px; font-weight: 800; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; }

/* contact band */
.contact-band { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; padding: 44px; border-radius: 32px; color: #fff;
    background: radial-gradient(600px 300px at 0% 100%, rgba(249, 115, 22, .35), transparent 70%), radial-gradient(500px 300px at 100% 0%, rgba(59, 130, 246, .3), transparent 70%), var(--navy-2);
    box-shadow: 0 40px 80px -40px rgba(10, 16, 32, .9); }
.cb-text h2 { margin: 12px 0 10px; font-size: clamp(26px, 4vw, 36px); font-weight: 900; }
.cb-address { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: 18px; font-weight: 600; line-height: 2; color: rgba(255, 255, 255, .9); }
.cb-address svg { margin-top: 7px; color: #fbbf24; }
.cb-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.cb-side { display: grid; gap: 12px; }
.cb-item { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.cb-item small { display: block; color: rgba(255, 255, 255, .6); font-size: 12px; }
.cb-item b { font-size: 16px; }

/* footer */
.footer { margin-top: 88px; border-top: 1px solid var(--border); }
.footer-in { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); }
.footer .logo { font-size: 15px; }
.footer .logo-mark { width: 36px; height: 36px; border-radius: 11px; }
.footer .logo-mark svg { width: 19px; height: 19px; }
.copy { color: var(--muted); font-size: 13px; }
.staff { margin-inline-start: auto; color: var(--muted); font-size: 13px; font-weight: 600; }
.staff:hover { color: var(--amber); }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero-in { grid-template-columns: minmax(0, 1fr); text-align: center; padding-top: 24px; }
    .hero h1::after { margin-inline: auto; }
    .lead { margin-inline: auto; }
    .hero-loc, .hero-actions { justify-content: center; }
    .scene { width: 100%; max-width: 560px; margin-inline: auto; }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
    .steps::before { display: none; }
    .contact-band { grid-template-columns: minmax(0, 1fr); padding: 32px 24px; }
}
@media (max-width: 720px) {
    .links { display: none; }
    .nav-cta { margin-inline-start: auto; }
    .hero { padding-bottom: 120px; }
    .rates-wrap { margin-top: -80px; }
    .rate { padding: 20px; }
    .section { padding-top: 64px; }
    .float-chip b { font-size: 16px; }
    .footer-in { justify-content: center; text-align: center; }
    .staff { margin-inline-start: 0; }
}
@media (max-width: 420px) {
    .steps { grid-template-columns: minmax(0, 1fr); }
    .hero-actions .btn { flex: 1; justify-content: center; }
}

/* ---------- Route ---------- */
.route-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.route-stats div { padding: 16px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); text-align: center; }
.route-stats span { display: block; font-size: 13px; color: var(--muted); }
.route-stats b { font-size: 18px; font-weight: 900; }

.route-map { position: relative; padding: 30px 26px; border-radius: 28px; color: #fff; overflow: hidden;
    background: radial-gradient(500px 260px at 100% 0%, rgba(249, 115, 22, .25), transparent 70%), radial-gradient(500px 300px at 0% 100%, rgba(59, 130, 246, .22), transparent 70%), var(--navy-2);
    box-shadow: 0 40px 80px -40px rgba(10, 16, 32, .9); }
.route-line { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: column; grid-template-rows: repeat(7, auto); column-gap: 72px; }
.stop { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 0; }
/* asphalt road between stops */
.stop::before { content: ""; position: absolute; top: 0; bottom: 0; right: 15px; width: 14px; background: #2a3147; border-inline: 2px solid #3a4360; }
.stop::after { content: ""; position: absolute; top: 0; bottom: 0; right: 21px; width: 2px; background: repeating-linear-gradient(180deg, #fbbf24 0 8px, transparent 8px 16px); opacity: .8; }
.stop.start::before, .stop.start::after { top: 50%; }
.stop.end::before, .stop.end::after { bottom: 50%; }
.route-line .stop:nth-child(7)::before, .route-line .stop:nth-child(7)::after { bottom: 0; }
.dot { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; margin-right: 0;
    background: #10172b; border: 3px solid #fbbf24; box-shadow: 0 0 0 5px rgba(251, 191, 36, .12); }
.stop:not(.start):not(.end):not(.pass) .dot { width: 22px; height: 22px; margin-inline: 11px; border-width: 4px; }
.dot svg { width: 20px; height: 20px; color: #fbbf24; }
.stop.pass .dot { background: #fff; border-color: #fff; }
.stop.pass .dot svg { color: #0f172a; fill: #94a3b8; stroke: #0f172a; stroke-width: 1.6; }
.stop.start .dot, .stop.end .dot { background: var(--grad); border-color: transparent; box-shadow: 0 0 0 6px rgba(249, 115, 22, .2), 0 10px 22px -6px rgba(249, 115, 22, .8); }
.stop.start .dot svg, .stop.end .dot svg { color: #1a1205; }
.stop-body h3 { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.5; }
.stop.pass h3 { color: #fcd34d; }
.stop.start h3, .stop.end h3 { font-size: 18px; }
.stop-body p { margin: 0; font-size: 12.5px; color: rgba(255, 255, 255, .6); line-height: 1.7; }
.stop-meta { text-align: left; white-space: nowrap; }
.stop-meta b { display: block; font-size: 14px; font-weight: 800; }
.stop-meta span { font-size: 12px; color: rgba(255, 255, 255, .55); }
.route-note { margin: 14px 4px 0; font-size: 13px; color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.photo { margin: 0; position: relative; border-radius: 22px; overflow: hidden; background: #111827; aspect-ratio: 4 / 3; box-shadow: 0 24px 50px -28px rgba(15, 23, 42, .6); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.photo:hover img { transform: scale(1.06); }
.photo figcaption { position: absolute; inset: auto 0 0 0; padding: 40px 18px 14px; color: #fff; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .78)); display: grid; }
.photo figcaption b { font-size: 17px; font-weight: 800; }
.photo figcaption span { font-size: 13px; color: rgba(255, 255, 255, .8); }
.photo .credit { margin-top: 4px; font-size: 10.5px; color: rgba(255, 255, 255, .55); direction: rtl; }
.photo .credit:hover { color: #fff; }

@media (max-width: 860px) {
    .route-line { grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; grid-template-rows: none; }
    .route-line .stop:nth-child(7)::before, .route-line .stop:nth-child(7)::after { bottom: 0; }
    .gallery { grid-template-columns: minmax(0, 1fr); }
    .route-map { padding: 22px 16px; }
}
@media (max-width: 520px) {
    .route-stats { grid-template-columns: minmax(0, 1fr); }
    .route-stats div { display: flex; justify-content: space-between; align-items: center; text-align: right; padding: 12px 16px; }
}

/* ---------- Driver gallery ---------- */
.links a.current { background: rgba(255, 255, 255, .1); color: #fff; }
.btn-soft { color: var(--text); background: var(--surface); border: 1px solid var(--border); box-shadow: 0 10px 24px -16px rgba(15, 23, 42, .4); }
.btn-soft:hover { transform: translateY(-2px); border-color: rgba(249, 115, 22, .4); }
.btn-block { width: 100%; justify-content: center; padding-block: 14px; font-size: 16px; border: 0; cursor: pointer; font-family: inherit; }
.btn-block:disabled { opacity: .6; cursor: wait; transform: none; }

.dg-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dg-strip .dg-item:nth-child(n+6) { display: none; }
.dg-item { position: relative; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; background: #1f2937; }
.dg-item:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.dg-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease); }
.dg-item:hover img { transform: scale(1.07); }
.dg-cap { position: absolute; inset: auto 0 0 0; padding: 30px 12px 10px; display: grid; color: #fff; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .75)); font-size: 13px; line-height: 1.6; }
.dg-cap small { color: rgba(255, 255, 255, .75); font-size: 11.5px; }
.dg-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

.hero-sm { padding-bottom: 70px; }
.hero-sm-in { position: relative; z-index: 2; text-align: center; padding-top: 48px; }
.hero-sm-in .eyebrow svg { width: 15px; height: 15px; }
.hero-sm-in h1::after { margin-inline: auto; }
.hero-sm-in .lead { margin-inline: auto; max-width: 640px; }
.hero-sm-in .hero-actions { justify-content: center; }
.gallery-page { padding-top: 48px; }

.masonry { columns: 3 300px; column-gap: 16px; }
.m-item { break-inside: avoid; margin: 0 0 16px; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 16px 36px -24px rgba(15, 23, 42, .5); cursor: zoom-in; transition: transform .35s var(--ease), box-shadow .35s; }
.m-item:hover, .m-item:focus-visible { transform: translateY(-4px); box-shadow: 0 26px 50px -26px rgba(249, 115, 22, .5); outline: none; }
.m-item img { display: block; width: 100%; height: auto; background: #1f2937; }
.m-item figcaption { padding: 14px 16px 16px; display: grid; gap: 4px; }
.by { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: #1a1205; background: var(--grad); }
.loc { display: flex; align-items: center; gap: 4px; font-size: 13px; color: #c2410c; font-weight: 600; }
.loc svg { width: 15px; height: 15px; }
.m-item p { margin: 2px 0 0; font-size: 14px; color: var(--muted); line-height: 1.9; }
.m-item time { font-size: 12px; color: var(--muted); opacity: .8; }
@media (prefers-color-scheme: dark) { .loc { color: #fdba74; } }

.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 24px; color: var(--muted); font-size: 14px; }
.pager a, .pager .disabled { padding: 8px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-weight: 700; color: var(--text); }
.pager .disabled { opacity: .45; }
.empty { text-align: center; padding: 56px 20px; border-radius: 24px; border: 2px dashed var(--border); }
.empty .f-ic { margin: 0 auto 12px; }
.empty h2 { margin: 0; font-size: 22px; }
.empty p { margin: 6px 0 0; color: var(--muted); }

.upload-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; padding: 36px; border-radius: 32px; color: #fff;
    background: radial-gradient(600px 300px at 100% 0%, rgba(249, 115, 22, .3), transparent 70%), radial-gradient(500px 300px at 0% 100%, rgba(59, 130, 246, .25), transparent 70%), var(--navy-2);
    box-shadow: 0 40px 80px -40px rgba(10, 16, 32, .9); }
.upload-intro h2 { margin: 12px 0 18px; font-size: clamp(24px, 3.4vw, 32px); font-weight: 900; line-height: 1.5; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rules li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255, 255, 255, .8); font-size: 14px; }
.rules svg { width: 18px; height: 18px; color: #fbbf24; margin-top: 4px; stroke-width: 3; }
.upload-form { display: grid; gap: 14px; align-content: start; }
.drop { position: relative; display: grid; justify-items: center; gap: 4px; padding: 26px 16px; border-radius: 20px; text-align: center; cursor: pointer;
    border: 2px dashed rgba(251, 191, 36, .5); background: rgba(255, 255, 255, .04); transition: background .2s, border-color .2s; }
.drop:hover, .drop.over { background: rgba(251, 191, 36, .1); border-color: #fbbf24; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop-ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #1a1205; background: var(--grad); margin-bottom: 6px; }
.drop b { font-size: 16px; }
.drop span:last-child { font-size: 13px; color: rgba(255, 255, 255, .6); }
.drop.has { padding: 14px; }
.drop.has .drop-ic { width: 40px; height: 40px; border-radius: 12px; }
.previews { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.previews:empty { display: none; }
.pv { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #1f2937; }
.pv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv button { position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .65); cursor: pointer; padding: 0; }
.pv button svg { width: 14px; height: 14px; stroke-width: 3; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { display: grid; gap: 6px; font-size: 13px; color: rgba(255, 255, 255, .75); font-weight: 600; }
.field.full { grid-column: 1 / -1; }
.field i { color: #fbbf24; font-style: normal; }
.field input, .field textarea { font: inherit; font-size: 15px; font-weight: 500; color: #fff; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .15); border-radius: 12px; padding: 11px 14px; resize: vertical; min-width: 0; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, .35); }
.field input:focus, .field textarea:focus { outline: none; border-color: #fbbf24; box-shadow: 0 0 0 4px rgba(251, 191, 36, .18); }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.notice { padding: 12px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; line-height: 1.9; }
.notice.ok { background: rgba(16, 185, 129, .16); border: 1px solid rgba(52, 211, 153, .4); color: #a7f3d0; }
.notice.err { background: rgba(239, 68, 68, .14); border: 1px solid rgba(248, 113, 113, .4); color: #fecaca; }
.progress { position: relative; height: 34px; border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, .08); }
.progress span { position: absolute; inset: 0 0 0 auto; width: 0; background: var(--grad); transition: width .2s; }
.progress b { position: relative; display: grid; place-items: center; height: 100%; font-size: 13px; }

.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 56px 64px; background: rgba(5, 8, 18, .94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); max-height: 100%; display: grid; gap: 12px; justify-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 220px); max-height: calc(100dvh - 220px); border-radius: 14px; object-fit: contain; }
.lightbox figcaption { color: #fff; text-align: center; display: grid; gap: 4px; justify-items: center; }
.lightbox figcaption p { margin: 0; color: rgba(255, 255, 255, .75); max-width: 640px; }
.lightbox figcaption time { font-size: 12px; color: rgba(255, 255, 255, .5); }
.lightbox .loc { color: #fdba74; }
.lb-close, .lb-nav { position: absolute; border: 0; cursor: pointer; color: #fff; background: rgba(255, 255, 255, .1); border-radius: 50%; display: grid; place-items: center; transition: background .2s; font-family: inherit; }
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, .2); }
.lb-close { top: calc(14px + env(safe-area-inset-top, 0px)); left: 14px; width: 44px; height: 44px; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 30px; line-height: 1; padding-bottom: 4px; }
.lb-prev { right: 10px; } .lb-next { left: 10px; }

@media (max-width: 860px) {
    .dg-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .dg-item:nth-child(1) { grid-column: span 3; grid-row: auto; aspect-ratio: 16 / 9; }
    .dg-strip .dg-item:nth-child(n+6) { display: block; }
    .dg-strip .dg-item:nth-child(n+5) { display: none; }
    .upload-card { grid-template-columns: minmax(0, 1fr); padding: 26px 18px; gap: 22px; }
}
@media (max-width: 520px) {
    .fields { grid-template-columns: minmax(0, 1fr); }
    .previews { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lightbox { padding: 60px 8px 20px; }
    .lb-nav { top: auto; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: none; }
    .lb-prev { right: 30%; } .lb-next { left: 30%; }
    .dg-strip .dg-item:nth-child(n+5) { display: none; }
}

/* ---------- News ---------- */
.anns { display: grid; gap: 12px; margin-bottom: 26px; }
.ann { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); border-inline-start: 5px solid #3b82f6; box-shadow: 0 14px 30px -24px rgba(15, 23, 42, .5); }
.ann-warning { border-inline-start-color: #f59e0b; background: linear-gradient(90deg, transparent, rgba(245, 158, 11, .08)), var(--surface); }
.ann-danger { border-inline-start-color: #ef4444; background: linear-gradient(90deg, transparent, rgba(239, 68, 68, .09)), var(--surface); }
.ann-ic { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; font-weight: 900; font-size: 20px; color: #fff; background: #3b82f6; font-family: Georgia, serif; }
.ann-warning .ann-ic { background: #f59e0b; color: #1a1205; font-family: inherit; font-size: 18px; }
.ann-danger .ann-ic { background: #ef4444; animation: pulse-red 1.8s infinite; }
@keyframes pulse-red { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .6); } 70%, 100% { box-shadow: 0 0 0 10px transparent; } }
.ann-body { min-width: 0; flex: 1; }
.ann-top { display: flex; align-items: center; gap: 10px; }
.ann-tag { font-size: 12px; font-weight: 800; padding: 1px 10px; border-radius: 999px; color: #1d4ed8; background: rgba(59, 130, 246, .12); }
.ann-warning .ann-tag { color: #b45309; background: rgba(245, 158, 11, .16); }
.ann-danger .ann-tag { color: #b91c1c; background: rgba(239, 68, 68, .14); }
.ann-top time { font-size: 12px; color: var(--muted); }
.ann h3 { margin: 6px 0 0; font-size: 17px; font-weight: 800; line-height: 1.7; }
.ann p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 2; }
@media (prefers-color-scheme: dark) {
    .ann-tag { color: #93c5fd; } .ann-warning .ann-tag { color: #fcd34d; } .ann-danger .ann-tag { color: #fca5a5; }
}

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.news-card { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 12px 30px -24px rgba(15, 23, 42, .5); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.news-card:hover { transform: translateY(-3px); border-color: rgba(249, 115, 22, .35); box-shadow: 0 22px 40px -26px rgba(249, 115, 22, .5); }
.news-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.news-src { font-weight: 700; color: #c2410c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-card h3 { margin: 0; font-size: 15.5px; font-weight: 800; line-height: 1.9; }
.news-card p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 2; }
.news-more { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--amber); }
@media (prefers-color-scheme: dark) { .news-src { color: #fdba74; } }
.news-page { padding-top: 40px; }
.block-title { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 900; margin: 0 0 14px; }
.dot-live { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; animation: pulse-red 1.8s infinite; }

/* mobile: menu-ye ofoghi zir-e logo */
@media (max-width: 720px) {
    .nav-in { flex-wrap: wrap; height: auto; padding-block: 12px 0; row-gap: 6px; }
    .links { display: flex; order: 3; width: 100%; margin: 0 -20px; padding: 0 20px 10px; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
    .links::-webkit-scrollbar { display: none; }
    .links a { white-space: nowrap; background: rgba(255, 255, 255, .07); font-size: 13px; padding: 6px 13px; }
    .nav { background: rgba(10, 16, 32, .82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
    .hero { padding-top: calc(118px + env(safe-area-inset-top, 0px)); }
    html { scroll-padding-top: 120px; }
}
