:root {
  --navy: #0b1f3a;
  --navy2: #102a4c;
  --blue: #1e6fd9;
  --blue-d: #1759b8;
  --teal: #19b3a6;
  --ink: #1a2433;
  --muted: #5b6b80;
  --line: #e3eaf3;
  --bg: #f5f8fc;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(11, 31, 58, 0.08);
  --shadow-sm: 0 4px 14px rgba(11, 31, 58, 0.06);
  --radius: 14px;
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 760px; }
.center { text-align: center; margin-top: 28px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-size: 15px; font-weight: 600; cursor: pointer; transition: all .2s ease;
  font-family: inherit;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(30,111,217,.28); }
.btn-primary:hover { background: var(--blue-d); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(11,31,58,.96);
  backdrop-filter: blur(8px); color: #fff;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand-mark { color: var(--teal); display: inline-flex; }
.brand-mark-light { color: var(--teal); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-size: 19px; letter-spacing: 2px; }
.brand-text em { font-size: 11px; letter-spacing: 3px; color: #9db4d4; font-style: normal; }
.main-nav { display: flex; gap: 4px; }
.nav-link {
  padding: 8px 14px; border-radius: 8px; font-size: 15px; color: #cdd9ec; font-weight: 500;
  transition: all .15s ease;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-link.active { color: #fff; background: rgba(30,111,217,.35); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px; padding: 6px 14px; font-size: 14px; cursor: pointer; font-family: inherit;
}
.lang-toggle:hover { background: rgba(255,255,255,.12); }
.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: #fff; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(1100px 500px at 80% -10%, rgba(30,111,217,.55), transparent),
    linear-gradient(135deg, var(--navy) 0%, var(--navy2) 60%, #0a2a52 100%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0; opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(circle at 70% 30%, #000, transparent 75%);
}
.hero-inner { position: relative; padding: 92px 20px 104px; max-width: 820px; }
.hero h1 { font-size: clamp(30px, 5vw, 50px); line-height: 1.15; font-weight: 800; letter-spacing: .5px; }
.hero p { margin-top: 20px; font-size: clamp(16px, 2.2vw, 19px); color: #d4e0f1; max-width: 620px; }
.hero-cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--white); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 28px 20px; }
.stat { text-align: center; padding: 8px; }
.stat strong { display: block; font-size: 34px; font-weight: 800; color: var(--blue); }
.stat span { color: var(--muted); font-size: 14px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--white); }
.section-head { text-align: center; margin-bottom: 42px; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; color: var(--navy); }
.section-head p { margin-top: 10px; color: var(--muted); font-size: 16px; }

.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy2));
  color: #fff; padding: 64px 0; position: relative; overflow: hidden;
}
.page-hero.compact { padding: 46px 0; }
.page-hero h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; }
.page-hero p { margin-top: 12px; color: #cdd9ec; max-width: 680px; }
.back-link { color: #9db4d4; font-size: 14px; }

/* ---------- Service cards ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; transition: all .2s ease; box-shadow: var(--shadow-sm);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe0f6; }
.service-icon {
  display: inline-flex; width: 50px; height: 50px; border-radius: 12px; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue), var(--teal)); color: #fff; margin-bottom: 14px;
}
.service-icon .feat-icon { width: 26px; height: 26px; }
.service-card h3 { font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: 14.5px; }

/* ---------- Advantages ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.adv-card { background: var(--bg); border-radius: var(--radius); padding: 26px 22px; }
.adv-icon { display: inline-flex; width: 46px; height: 46px; border-radius: 12px; align-items: center; justify-content: center;
  background: rgba(30,111,217,.1); color: var(--blue); margin-bottom: 14px; }
.adv-icon .feat-icon { width: 24px; height: 24px; }
.adv-card h3 { font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.adv-card p { color: var(--muted); font-size: 14px; }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; gap: 8px; transition: all .2s ease; box-shadow: var(--shadow-sm);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-date { color: var(--blue); font-size: 13px; font-weight: 600; }
.news-cat { align-self: flex-start; background: rgba(25,179,166,.12); color: var(--teal); font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.news-card h3 { font-size: 18px; color: var(--navy); line-height: 1.4; }
.news-card p { color: var(--muted); font-size: 14px; flex: 1; }
.news-more { color: var(--blue); font-weight: 600; font-size: 14px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 44px; align-items: start; }
.about-grid h2 { font-size: 28px; color: var(--navy); margin-bottom: 14px; }
.lead { font-size: 16.5px; color: #33425a; }
.about-highlights { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.about-highlights li { display: flex; gap: 10px; align-items: flex-start; color: #33425a; }
.about-highlights .feat-icon { width: 20px; height: 20px; color: var(--teal); flex: none; margin-top: 3px; }
.about-side { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; box-shadow: var(--shadow-sm); }
.stat-box strong { display: block; font-size: 30px; color: var(--blue); font-weight: 800; }
.stat-box span { color: var(--muted); font-size: 13px; }

/* ---------- Services detail ---------- */
.service-list { display: grid; gap: 18px; }
.service-detail {
  display: flex; gap: 20px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm);
}
.service-detail .service-icon { flex: none; margin: 0; }
.service-detail h3 { font-size: 20px; color: var(--navy); margin-bottom: 8px; }
.service-detail p { color: var(--muted); margin-bottom: 10px; }
.feat-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.feat-list li { background: var(--bg); border-radius: 8px; padding: 5px 12px; font-size: 13.5px; color: #33425a; }

/* ---------- Tracking ---------- */
.track-form { display: flex; gap: 12px; }
.track-input {
  flex: 1; padding: 14px 18px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 16px;
  font-family: inherit; outline: none; transition: border-color .15s;
}
.track-input:focus { border-color: var(--blue); }
.track-example { margin-top: 12px; color: var(--muted); font-size: 14px; }
.track-example a { color: var(--blue); font-weight: 600; }
.track-result { margin-top: 26px; }
.track-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.track-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.track-no-label { display: block; font-size: 12px; color: var(--muted); }
.track-no { font-size: 22px; color: var(--navy); letter-spacing: 1px; }
.track-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0; }
.track-meta span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.track-meta strong { color: var(--navy); font-size: 15px; }
.track-section-title { font-size: 16px; color: var(--navy); margin-bottom: 14px; }

.status-badge { padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.status-badge.status-booked { background: #eef2f7; color: #5b6b80; }
.status-badge.status-picked_up { background: #e6f0ff; color: var(--blue); }
.status-badge.status-in_transit { background: #e6f7ff; color: #0a7ec2; }
.status-badge.status-customs { background: #fff4e0; color: #c9820a; }
.status-badge.status-arrived { background: #eafaf3; color: var(--teal); }
.status-badge.status-delivered { background: #e7f8ec; color: #1c9e4b; }
.status-badge.status-exception { background: #fdeaea; color: #d33; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; position: relative; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding-bottom: 20px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: -26px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); }
.timeline-item.is-latest .timeline-dot { background: var(--blue); box-shadow: 0 0 0 4px rgba(30,111,217,.18); }
.timeline-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.timeline-head strong { color: var(--navy); font-size: 15px; }
.timeline-time { color: var(--muted); font-size: 13px; }
.timeline-body p { color: var(--muted); font-size: 14px; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-card label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--navy); }
.form-card label.full { grid-column: 1 / -1; }
.form-card input, .form-card select, .form-card textarea {
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 15px;
  font-family: inherit; outline: none; transition: border-color .15s; color: var(--ink); background: #fff;
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { border-color: var(--blue); }
.form-hint { color: var(--muted); font-size: 13px; margin: 4px 0 16px; }
.form-msg { margin-top: 14px; }
.state-error { color: #d33; font-size: 14px; font-weight: 600; }
.ref { margin-top: 10px; color: var(--navy); }

.state-block { text-align: center; padding: 30px 10px; }
.state-block.success h3 { color: var(--teal); font-size: 22px; margin-bottom: 8px; }
.state-block.success p { color: var(--muted); }
.state-block.success .ref { color: var(--navy); font-size: 16px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 36px; align-items: start; }
.contact-info { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.contact-info h3 { color: var(--navy); margin-bottom: 18px; font-size: 20px; }
.ci-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.ci-item:last-child { border-bottom: 0; }
.ci-item span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.ci-item strong { color: var(--navy); font-size: 15px; }

/* ---------- Article ---------- */
.article .lead { font-size: 18px; color: var(--navy); margin-bottom: 18px; font-weight: 600; }
.article-meta { color: var(--muted); font-size: 14px; margin-top: 8px; }
.article-body { color: #33425a; font-size: 16px; line-height: 1.8; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--blue), var(--teal)); color: #fff; }
.cta-inner { text-align: center; padding: 60px 20px; }
.cta-inner h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; }
.cta-inner p { margin: 12px 0 26px; color: rgba(255,255,255,.9); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #cdd9ec; padding: 52px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 36px; padding-bottom: 36px; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { color: #9db4d4; font-size: 14.5px; max-width: 420px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: #cdd9ec; font-size: 14.5px; }
.footer-col a:hover { color: #fff; }
.footer-contact li { color: #cdd9ec; font-size: 14.5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #8aa0c2; font-size: 13px; }

/* ---------- Spinner / Toast ---------- */
.spinner-wrap { text-align: center; padding: 70px 0; color: var(--muted); }
.spinner { width: 38px; height: 38px; border: 4px solid var(--line); border-top-color: var(--blue); border-radius: 50%; margin: 0 auto 14px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#toast-root { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast { background: var(--navy); color: #fff; padding: 12px 22px; border-radius: 999px; font-size: 14.5px; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); transition: all .3s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast-success { background: #1c9e4b; }
.toast-warn { background: #c9820a; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .service-grid, .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 66px; left: 0; right: 0; background: var(--navy);
    flex-direction: column; gap: 0; padding: 8px; display: none; border-top: 1px solid rgba(255,255,255,.1);
  }
  body.nav-open .main-nav { display: flex; }
  .nav-link { padding: 12px 14px; }
  .service-grid, .adv-grid, .news-grid, .track-meta { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 64px 20px 72px; }
  .section { padding: 52px 0; }
}
