/* ==========================================================================
   Xəzər Ekspres — design system
   Dark-first. One stylesheet, no framework, no CDN: the whole site has to run
   from a folder on a client's machine.
   ========================================================================== */

/* --- Font ---------------------------------------------------------------- */
/* Inter, subset to Latin + Azerbaijani (Ə ə Ğ ğ İ ı Ş ş Ç ç Ö ö Ü ü) and the
   manat sign. 63 KB instead of 352 KB, and it ships with the site rather than
   from a CDN, so no third-party request is needed to render the first word. */
@font-face {
  font-family: "Inter var";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* --- Tokens -------------------------------------------------------------- */
:root {
  /* Colour. The palette is built around the Caspian: deep water for ground,
     a mint-teal for anything that moves or can be acted on. */
  --bg: #0a1014;
  --bg-alt: #0d151a;
  --surface: #101a20;
  --surface-2: #16242c;
  --border: #1f3038;
  --border-strong: #2a414c;

  --text: #e8f0f4;
  --text-muted: #93a9b4;
  --text-dim: #6b8290;

  --accent: #2dd4a7;
  --accent-hover: #4fe0bb;
  --accent-soft: rgba(45, 212, 167, 0.12);
  --accent-line: rgba(45, 212, 167, 0.28);
  --accent-ink: #04221a;

  --warn: #ffb443;
  --warn-soft: rgba(255, 180, 67, 0.12);
  --danger: #ff6b6b;

  /* Spacing — 8px grid, with a 4px half-step for tight work. */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;

  /* Type scale — 1.25 ratio, fluid between 360px and 1280px. */
  --step--1: clamp(0.8125rem, 0.79rem + 0.11vw, 0.875rem);
  --step-0: clamp(0.9375rem, 0.91rem + 0.14vw, 1rem);
  --step-1: clamp(1.125rem, 1.07rem + 0.27vw, 1.25rem);
  --step-2: clamp(1.375rem, 1.28rem + 0.45vw, 1.5625rem);
  --step-3: clamp(1.625rem, 1.46rem + 0.8vw, 1.953rem);
  --step-4: clamp(1.875rem, 1.57rem + 1.5vw, 2.441rem);
  --step-5: clamp(2.25rem, 1.7rem + 2.6vw, 3.052rem);

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --r-full: 999px;

  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 16px 48px rgba(0, 0, 0, 0.4);

  --wrap: 1140px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --dur: 200ms;

  color-scheme: dark;
}

/* --- Reset --------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter var", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img,
svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 650;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); letter-spacing: -0.035em; }
h2 { font-size: var(--step-4); letter-spacing: -0.03em; }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0; text-wrap: pretty; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

ul, ol { margin: 0; padding: 0; }

button,
input,
select,
textarea { font: inherit; color: inherit; }

/* Keyboard focus has to stay obvious on every interactive thing. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* --- Layout -------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--s-5);
}

.section { padding-block: var(--s-9); }
.section--tight { padding-block: var(--s-8); }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-6); }

.grid { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.section-head { max-width: 62ch; margin-bottom: var(--s-7); }
.section-head p { color: var(--text-muted); margin-top: var(--s-3); font-size: var(--step-1); }

/* --- Utility ------------------------------------------------------------- */
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); font-size: var(--step--1); }
.center { text-align: center; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r);
  font-weight: 600;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--s-4); }

/* --- Eyebrow / pill ------------------------------------------------------ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  padding: var(--s-1) var(--s-3);
  border-radius: var(--r-full);
}
.eyebrow svg { width: 14px; height: 14px; }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: var(--step-0);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); color: var(--accent-ink); }

.btn--ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--accent-line); color: var(--text); }

.btn--block { width: 100%; }

/* --- Card ---------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
    background var(--dur) var(--ease);
}
.card--link:hover {
  border-color: var(--accent-line);
  background: var(--surface-2);
  transform: translateY(-2px);
}
.card h3 { margin-bottom: var(--s-2); }
.card p { color: var(--text-muted); }

.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--r);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  margin-bottom: var(--s-4);
}
.card-icon svg { width: 22px; height: 22px; }

/* --- Forms --------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field label { font-size: var(--step--1); font-weight: 600; color: var(--text-muted); }

.input,
.select,
.textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--s-3) var(--s-4);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  color: var(--text);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.input::placeholder,
.textarea::placeholder { color: var(--text-dim); }
.input:hover,
.select:hover,
.textarea:hover { border-color: var(--accent-line); }
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.textarea { min-height: 130px; resize: vertical; padding-top: var(--s-3); }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393a9b4' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--s-4) center;
  background-size: 18px;
  padding-right: var(--s-8);
}

.field-error {
  color: var(--danger);
  font-size: var(--step--1);
  display: none;
}
.field[data-invalid="true"] .field-error { display: block; }
.field[data-invalid="true"] .input,
.field[data-invalid="true"] .select { border-color: var(--danger); }

/* --- Header -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 16, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-weight: 700;
  font-size: var(--step-1);
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
  flex: none;
}
.logo:hover { color: var(--text); }
.logo__mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--accent), #1aa8d4);
  display: grid;
  place-items: center;
  color: var(--accent-ink);
  flex: none;
}
.logo__mark svg { width: 19px; height: 19px; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: var(--s-1); list-style: none; }
.nav__link {
  display: block;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--step-0);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav__link:hover { color: var(--text); background: var(--surface-2); }
.nav__link[aria-current="page"] { color: var(--accent); }

.header-cta { flex: none; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  cursor: pointer;
  color: var(--text);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    inset: 72px 0 auto;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: var(--s-4) var(--s-5) var(--s-6);
    margin: 0;
  }
  .nav[data-open="true"] { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: var(--s-1); }
  .nav__link { padding: var(--s-3) var(--s-4); font-size: var(--step-1); }
  .header-cta { display: none; }
}

/* --- Footer -------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding-block: var(--s-8) var(--s-6);
}
.footer-grid { display: grid; gap: var(--s-6); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }

.footer-col h4 { font-size: var(--step-0); margin-bottom: var(--s-4); }
.footer-col ul { list-style: none; display: grid; gap: var(--s-2); }
.footer-col a { color: var(--text-muted); text-decoration: none; font-size: var(--step-0); }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: var(--step--1);
}

.social { display: flex; gap: var(--s-2); list-style: none; }
.social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  color: var(--text-muted);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.social a:hover { color: var(--accent); border-color: var(--accent-line); }
.social svg { width: 18px; height: 18px; }

/* The demo notice. This site is a portfolio piece, and it says so. */
.demo-notice {
  background: var(--warn-soft);
  border: 1px solid rgba(255, 180, 67, 0.3);
  border-radius: var(--r);
  padding: var(--s-3) var(--s-4);
  color: var(--warn);
  font-size: var(--step--1);
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
}
.demo-notice svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.demo-notice a { color: var(--warn); }

/* --- Motion -------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: var(--s-8);
  overflow: hidden;
}
/* A single soft light source behind the copy. Cheaper than an image and it
   never blocks the first paint. */
.hero::before {
  content: "";
  position: absolute;
  inset: -30% 40% 30% -20%;
  background: radial-gradient(closest-side, rgba(45, 212, 167, 0.13), transparent 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  gap: var(--s-8);
  align-items: start;
}
@media (min-width: 960px) {
  .hero__inner { grid-template-columns: 1.15fr 0.85fr; gap: var(--s-9); align-items: center; }
}
.hero__copy h1 { margin-block: var(--s-5) var(--s-5); }
.hero__lede {
  font-size: var(--step-1);
  color: var(--text-muted);
  max-width: 54ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

/* --- Tracking box -------------------------------------------------------- */
.track-box {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--shadow-lg);
}
.track-box__title { font-size: var(--step-2); margin-bottom: var(--s-2); }
.track-form { margin-top: var(--s-5); display: grid; gap: var(--s-4); }
.track-form .input { font-size: var(--step-1); letter-spacing: 0.08em; text-transform: uppercase; }
.track-form .input::placeholder { letter-spacing: 0.08em; }

/* --- Stats --------------------------------------------------------------- */
.stats__list {
  list-style: none;
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(2, 1fr);
  border-block: 1px solid var(--border);
  padding-block: var(--s-6);
}
@media (min-width: 860px) { .stats__list { grid-template-columns: repeat(4, 1fr); } }
.stats__list li { display: flex; flex-direction: column; gap: var(--s-1); }
.stats__list strong {
  font-size: var(--step-4);
  font-weight: 680;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.stats__list span { color: var(--text-muted); font-size: var(--step--1); }

/* --- Calculator ---------------------------------------------------------- */
.calc { display: grid; gap: var(--s-8); align-items: center; }
@media (min-width: 960px) { .calc { grid-template-columns: 1fr 420px; gap: var(--s-9); } }
.calc__copy .section-head { margin-bottom: var(--s-5); }

.tick-list { list-style: none; display: grid; gap: var(--s-3); }
.tick-list li { display: flex; align-items: flex-start; gap: var(--s-3); color: var(--text-muted); }
.tick-list svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 2px; }

.calc__panel {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  display: grid;
  gap: var(--s-4);
  box-shadow: var(--shadow);
}
.calc__title { font-size: var(--step-1); margin-bottom: var(--s-1); }

.calc__result {
  display: grid;
  gap: var(--s-1);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--r);
  padding: var(--s-4) var(--s-5);
  margin-top: var(--s-1);
}
.calc__result-label { font-size: var(--step--1); color: var(--text-muted); }
.calc__result-value {
  font-size: var(--step-4);
  font-weight: 680;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  transition: opacity 120ms var(--ease);
}
.calc__result-value[data-updating="true"] { opacity: 0.45; }
.calc__result-note { font-size: var(--step--1); color: var(--text-dim); }

/* --- Steps --------------------------------------------------------------- */
.steps {
  list-style: none;
  display: grid;
  gap: var(--s-5);
  counter-reset: step;
}
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.steps__item {
  position: relative;
  padding-top: var(--s-6);
  border-top: 2px solid var(--border-strong);
}
.steps__item h3 { font-size: var(--step-1); margin-bottom: var(--s-2); }
.steps__item p { color: var(--text-muted); font-size: var(--step-0); }
.steps__num {
  position: absolute;
  top: calc(var(--s-6) * -0.5 - 6px);
  left: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--r-full);
  background: var(--bg-alt);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  font-size: var(--step--1);
}

/* --- FAQ ----------------------------------------------------------------- */
.faq__list { display: grid; gap: var(--s-3); max-width: 78ch; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: border-color var(--dur) var(--ease);
}
.faq__item[open] { border-color: var(--accent-line); }
.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: var(--s-4) var(--s-5);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 56px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  width: 12px;
  height: 12px;
  flex: none;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.faq__item[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
  border-color: var(--accent);
}
.faq__item p { padding: 0 var(--s-5) var(--s-5); color: var(--text-muted); }

/* --- CTA ----------------------------------------------------------------- */
.cta__inner {
  display: grid;
  gap: var(--s-6);
  align-items: center;
}
@media (min-width: 860px) { .cta__inner { grid-template-columns: 1fr auto; gap: var(--s-8); } }
.cta__inner p { margin-top: var(--s-3); max-width: 52ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* --- No-JS fallbacks ----------------------------------------------------- */
/* Without script the toggle cannot work, so the menu is simply always open
   rather than a button that does nothing. */
.no-js .nav-toggle { display: none; }
@media (max-width: 900px) {
  .no-js .nav {
    display: block;
    position: static;
    inset: auto;
    background: transparent;
    border: 0;
    padding: 0 0 var(--s-4);
    width: 100%;
  }
  .no-js .site-header__inner { flex-wrap: wrap; }
}

/* --- Inner page header --------------------------------------------------- */
.page-head {
  padding-block: var(--s-8) var(--s-7);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(60% 120% at 15% 0%, rgba(45, 212, 167, 0.08), transparent 70%),
    var(--bg-alt);
}
.page-head h1 { margin-block: var(--s-4) var(--s-4); max-width: 20ch; }
.page-head__lede { color: var(--text-muted); font-size: var(--step-1); max-width: 62ch; }

/* --- Table --------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-variant-numeric: tabular-nums;
}
.table th,
.table td {
  text-align: left;
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.table thead th {
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  font-weight: 600;
  background: var(--bg-alt);
  white-space: nowrap;
}
.table tbody tr:last-child th,
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody th { font-weight: 600; }
.table td { color: var(--accent); font-weight: 600; }
.table td:last-child { color: var(--text); font-weight: 500; }
.table__sub {
  display: block;
  font-size: var(--step--1);
  color: var(--text-dim);
  font-weight: 400;
  margin-top: 2px;
}

/* On a phone the table turns into stacked rows with their own labels. */
@media (max-width: 700px) {
  .table { min-width: 0; }
  .table thead { display: none; }
  .table tbody tr {
    display: grid;
    gap: var(--s-2);
    padding: var(--s-4) var(--s-5);
    border-bottom: 1px solid var(--border);
  }
  .table tbody th,
  .table tbody td { border: 0; padding: 0; }
  .table tbody td::before {
    content: attr(data-label) ": ";
    color: var(--text-dim);
    font-weight: 400;
  }
}

.note-grid {
  display: grid;
  gap: var(--s-4);
  margin-top: var(--s-6);
}
@media (min-width: 800px) { .note-grid { grid-template-columns: repeat(3, 1fr); } }
.note {
  border-left: 2px solid var(--accent-line);
  padding-left: var(--s-4);
}
.note h3 { font-size: var(--step-0); margin-bottom: var(--s-2); }
.note p { color: var(--text-muted); font-size: var(--step-0); }

/* --- Tracking page ------------------------------------------------------- */
/* Left-aligned with the page heading above it rather than centred, so the eye
   does not have to jump sideways between the two. */
.track-page { display: grid; gap: var(--s-6); max-width: 900px; margin-inline: 0; }
.track-panel {
  display: grid;
  gap: var(--s-4);
  align-items: end;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}
@media (min-width: 640px) { .track-panel { grid-template-columns: 1fr auto; } }
.track-panel .input { font-size: var(--step-1); letter-spacing: 0.08em; text-transform: uppercase; }

.sample-codes h2 { font-size: var(--step-0); color: var(--text-muted); margin-bottom: var(--s-3); }
.sample-codes ul { list-style: none; display: grid; gap: var(--s-2); }
.sample-codes li { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.code-chip {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  cursor: pointer;
  min-height: 36px;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.code-chip:hover { border-color: var(--accent); background: var(--accent-soft); }

.track-result:empty { display: none; }
.result-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.result-card__head {
  padding: var(--s-5) var(--s-6);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  align-items: center;
  justify-content: space-between;
}
.result-card__code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: var(--step-2);
  letter-spacing: 0.06em;
}
.result-card__body { padding: var(--s-6); display: grid; gap: var(--s-6); }
@media (min-width: 760px) { .result-card__body { grid-template-columns: 260px 1fr; } }

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-1) var(--s-3);
  border-radius: var(--r-full);
  font-size: var(--step--1);
  font-weight: 600;
  border: 1px solid;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge[data-tone="wait"] { color: var(--warn); border-color: rgba(255, 180, 67, 0.35); background: var(--warn-soft); }
.badge[data-tone="move"] { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.badge[data-tone="done"] { color: #7dd3fc; border-color: rgba(125, 211, 252, 0.32); background: rgba(125, 211, 252, 0.1); }

.result-meta { list-style: none; display: grid; gap: var(--s-4); align-content: start; }
.result-meta dt,
.result-meta__label { font-size: var(--step--1); color: var(--text-dim); }
.result-meta__value { display: block; margin-top: 2px; }

/* Timeline: newest event first, with the line drawn between the dots. */
.timeline { list-style: none; display: grid; gap: var(--s-5); position: relative; }
.timeline__item { position: relative; padding-left: var(--s-6); }
.timeline__item::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border-strong);
}
.timeline__item:first-child::before { border-color: var(--accent); background: var(--accent); }
.timeline__item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 20px;
  bottom: calc(var(--s-5) * -1 + 4px);
  width: 1px;
  background: var(--border-strong);
}
.timeline__date { font-size: var(--step--1); color: var(--text-dim); font-variant-numeric: tabular-nums; }
.timeline__text { font-weight: 600; margin-top: 2px; }
.timeline__place { font-size: var(--step--1); color: var(--text-muted); }

.result-empty {
  background: var(--surface);
  border: 1px solid rgba(255, 107, 107, 0.35);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}
.result-empty h2 { font-size: var(--step-1); color: var(--danger); margin-bottom: var(--s-3); }
.result-empty p { color: var(--text-muted); }

/* --- Forms: order and contact -------------------------------------------- */
.fieldset {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  margin: 0 0 var(--s-5);
  display: grid;
  gap: var(--s-4);
}
.fieldset legend {
  padding-inline: var(--s-3);
  font-weight: 650;
  font-size: var(--step-0);
  color: var(--accent);
}
.field-row { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.req { color: var(--accent); }

.order { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 980px) { .order { grid-template-columns: 1fr 340px; gap: var(--s-8); } }
.order__aside { display: grid; gap: var(--s-4); position: sticky; top: 96px; }
.order__aside h2 { font-size: var(--step-1); }
.order__summary {
  display: grid;
  gap: var(--s-1);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--r);
  padding: var(--s-4) var(--s-5);
  margin-bottom: var(--s-5);
}

.form-status:empty { display: none; }
.form-status {
  margin-top: var(--s-4);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: var(--step-0);
}
.form-status[data-tone="error"] {
  border-color: rgba(255, 107, 107, 0.35);
  background: rgba(255, 107, 107, 0.1);
  color: var(--danger);
}

.contact { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 980px) { .contact { grid-template-columns: 380px 1fr; gap: var(--s-8); } }
.contact__form {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  display: grid;
  gap: var(--s-4);
}
.contact__form h2 { font-size: var(--step-2); }
.contact__form > p { margin-top: calc(var(--s-3) * -1); }
.contact__channels h2 { font-size: var(--step-1); margin-bottom: var(--s-2); }
.contact__big { font-size: var(--step-1); font-weight: 600; }

/* --- Services ------------------------------------------------------------ */
.service-list { display: grid; gap: var(--s-5); }
.service {
  display: grid;
  gap: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  scroll-margin-top: 96px;
}
@media (min-width: 860px) { .service { grid-template-columns: 1fr 260px; gap: var(--s-8); } }
.service h2 { font-size: var(--step-3); }
.service__lede { color: var(--accent); font-weight: 600; margin-block: var(--s-2) var(--s-3); }
.service__points { margin-top: var(--s-5); }
.service__side {
  display: grid;
  gap: var(--s-3);
  align-content: start;
  padding-top: var(--s-2);
}
.service__price {
  font-size: var(--step-2);
  font-weight: 680;
  letter-spacing: -0.03em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* --- Branches ------------------------------------------------------------ */
.branch-list { display: grid; gap: var(--s-8); }
.branch-group h2 { font-size: var(--step-2); margin-bottom: var(--s-5); }
.branch {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: var(--s-5);
}
.branch h3 { font-size: var(--step-0); margin-bottom: var(--s-2); }
.branch__address { color: var(--text-muted); }
.branch__hours { color: var(--text-dim); font-size: var(--step--1); margin-block: var(--s-2); }

/* --- About --------------------------------------------------------------- */
.about { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 980px) { .about { grid-template-columns: 1fr 340px; gap: var(--s-8); } }
.about h2 { font-size: var(--step-2); margin-bottom: var(--s-3); }
.about__main p { max-width: 68ch; }
.about__aside { display: grid; gap: var(--s-4); }
.about__aside h3 { font-size: var(--step-1); margin-bottom: var(--s-4); }

.fact-list { list-style: none; display: grid; gap: var(--s-4); }
.fact-list li { display: flex; align-items: baseline; gap: var(--s-4); }
.fact-list strong {
  font-size: var(--step-2);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  min-width: 5ch;
}
.fact-list span { color: var(--text-muted); font-size: var(--step--1); }

/* --- Prose (privacy) ----------------------------------------------------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--step-2); margin-top: var(--s-7); margin-bottom: var(--s-3); }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-muted); }

/* --- 404 ----------------------------------------------------------------- */
.notfound { padding-block: var(--s-9); }
.notfound h1 { max-width: 18ch; margin-inline: auto; }

/* --- CTA photograph ------------------------------------------------------ */
/* The only stock photo on the site. Most logistics stock shots carry the
   giveaways of somewhere else -- Korean plates, IKEA signage -- which on an
   Azerbaijani courier's site reads as borrowed. This one is night, motion-blurred
   and free of any text or legible plate, so it stays about movement.
   WebP is 47 KB against 116 KB for the JPEG that follows it as a fallback. */
.cta--photo {
  position: relative;
  isolation: isolate;
  border-block: 1px solid var(--border);
  background-color: var(--bg-alt);
  background-image: url("../img/van-night.jpg");
  background-image: image-set(url("../img/van-night.webp") type("image/webp"), url("../img/van-night.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: 60% center;
}
/* Two layers: a flat wash to hold contrast everywhere, and a left-weighted
   gradient so the copy sits on the darkest part of the frame. */
.cta--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(95deg, rgba(10, 16, 20, 0.96) 30%, rgba(10, 16, 20, 0.72) 62%, rgba(10, 16, 20, 0.55) 100%),
    rgba(10, 16, 20, 0.35);
}
.cta--photo .cta__inner { padding-block: var(--s-6); }
