:root {
  --ink: #08131f;
  --navy: #071727;
  --navy-soft: #10283d;
  --panel: #0d2133;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4f8fb;
  --muted: #9eb2c3;
  --blue: #58b8ff;
  --blue-deep: #1473b8;
  --aqua: #9fe3ff;
  --paper: #eef7fd;
  --paper-text: #102638;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 23, 39, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(159, 227, 255, 0.48);
  border-radius: 50%;
  color: var(--aqua);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.telegram-link {
  color: var(--text);
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.tracker-shell {
  display: grid;
  grid-template-columns: minmax(360px, 0.78fr) minmax(0, 1.22fr);
  min-height: calc(100vh - 73px);
  border-bottom: 1px solid var(--line);
}

.tracker-panel {
  padding: clamp(28px, 5vw, 64px);
  background: linear-gradient(180deg, var(--navy), #091b2d);
}

.eyebrow,
.section-kicker,
.small-label {
  display: block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.search-card,
.shipment-card {
  width: min(100%, 620px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.search-card {
  padding: 18px;
  margin-bottom: 18px;
}

.search-card label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.search-row {
  display: flex;
  gap: 10px;
}

.search-row input {
  min-width: 0;
  flex: 1;
  height: 46px;
  padding: 0 14px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  text-transform: uppercase;
}

.search-row button,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 720;
}

.search-row button,
.primary-action {
  color: #061522;
  background: var(--blue);
}

.secondary-action {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
}

.shipment-card {
  padding: 22px;
}

.shipment-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.shipment-head strong {
  display: block;
  margin-top: 4px;
  color: var(--blue);
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1;
}

.status-pill {
  white-space: nowrap;
  padding: 9px 12px;
  border: 1px solid rgba(159, 227, 255, 0.28);
  border-radius: 999px;
  color: var(--aqua);
  background: rgba(159, 227, 255, 0.08);
  font-size: 13px;
  font-weight: 720;
}

.route-line {
  display: grid;
  grid-template-columns: auto minmax(80px, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 680;
}

.route-bar {
  position: relative;
  display: block;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.route-bar::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 55%;
  border-radius: inherit;
  background: var(--blue);
  content: "";
}

.route-bar i {
  position: absolute;
  top: 50%;
  left: 55%;
  width: 18px;
  height: 18px;
  border: 3px solid var(--navy);
  border-radius: 50%;
  background: var(--aqua);
  transform: translate(-50%, -50%);
}

.details {
  display: grid;
  gap: 16px;
  margin: 0;
}

.details div {
  display: grid;
  gap: 4px;
}

.details dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.details dd {
  margin: 0;
  font-size: 18px;
  font-weight: 680;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.map-panel {
  position: relative;
  min-height: 560px;
  background: var(--paper);
}

#routeMap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.map-overlay {
  position: absolute;
  right: clamp(18px, 3vw, 38px);
  bottom: clamp(18px, 3vw, 38px);
  z-index: 2;
  width: min(360px, calc(100% - 36px));
  padding: 18px;
  border: 1px solid rgba(16, 38, 56, 0.12);
  border-radius: 8px;
  color: var(--paper-text);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 60px rgba(8, 19, 31, 0.16);
  backdrop-filter: blur(12px);
}

.map-overlay span {
  display: block;
  margin-bottom: 6px;
  color: #587084;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.map-overlay strong {
  color: var(--paper-text);
  font-size: 22px;
}

.product-grid,
.plans {
  padding: clamp(42px, 6vw, 88px) clamp(20px, 4vw, 56px);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.product-grid article {
  min-height: 260px;
  padding: 30px;
  background: #091b2d;
}

.product-grid h2,
.plans h2 {
  margin: 12px 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.06;
}

.product-grid p,
.plans p {
  color: var(--muted);
  line-height: 1.6;
}

.plans {
  background: #06111d;
}

.plans-intro {
  max-width: 760px;
  margin-bottom: 28px;
}

.plan-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.plan-list article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.plan-list h3 {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 15px;
  text-transform: uppercase;
}

.plan-list strong {
  display: block;
  margin-bottom: 10px;
  font-size: 44px;
  line-height: 1;
}

.featured-plan {
  border-color: rgba(88, 184, 255, 0.55) !important;
  background: rgba(88, 184, 255, 0.09) !important;
}

.leaflet-container {
  font-family: inherit;
}

.leaflet-popup-content-wrapper {
  border-radius: 8px;
}

.ship-dot {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #061522;
  background: var(--blue);
  box-shadow: 0 8px 26px rgba(20, 115, 184, 0.35);
  font-size: 17px;
}

@media (max-width: 960px) {
  .tracker-shell,
  .product-grid,
  .plan-list {
    grid-template-columns: 1fr;
  }

  .tracker-shell {
    min-height: 0;
  }

  .map-panel {
    min-height: 520px;
  }

  .nav {
    display: none;
  }
}

@media (max-width: 560px) {
  .tracker-panel {
    padding: 24px 18px;
  }

  .search-row,
  .shipment-head,
  .actions {
    flex-direction: column;
  }

  .status-pill {
    align-self: flex-start;
  }

  .route-line {
    grid-template-columns: 1fr;
  }

  .route-bar {
    min-height: 3px;
  }
}
