:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #172033;
  --muted: #64718a;
  --line: #dce4ef;
  --primary: #143f73;
  --primary-dark: #0d2b50;
  --accent: #1e72c7;
  --shadow: 0 24px 70px rgba(20, 63, 115, 0.14);
  --radius: 22px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(220, 228, 239, 0.9);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  letter-spacing: 0.04em;
}

.header-note {
  color: var(--muted);
  font-size: 14px;
}

.hero {
  padding: 56px 0 44px;
  background:
    radial-gradient(circle at top right, rgba(30, 114, 199, 0.16), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #eef5fc 100%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  color: var(--primary-dark);
}

.lead {
  max-width: 610px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.search-card,
.state-card,
.summary-card,
.schedule-card {
  background: var(--card);
  border: 1px solid rgba(220, 228, 239, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.search-card { padding: 28px; }

.tracking-form label {
  display: block;
  margin-bottom: 12px;
  color: var(--primary-dark);
  font-weight: 700;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdff;
  color: var(--text);
  font-size: 16px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  text-transform: uppercase;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(30, 114, 199, 0.12);
}

button {
  min-height: 54px;
  padding: 0 26px;
  border: 0;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

.help-text {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.result-section { padding: 36px 0 72px; }

.state-card {
  padding: 34px;
  text-align: center;
}

.state-card h2 {
  margin: 0 0 10px;
  color: var(--primary-dark);
}

.state-card p {
  margin: 0;
  color: var(--muted);
}

.loader {
  width: 34px;
  height: 34px;
  margin: 0 auto 16px;
  border: 4px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.hidden { display: none !important; }

.results-summary { margin-bottom: 16px; }

.summary-card {
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.summary-card h2 {
  margin: 0;
  color: var(--primary-dark);
  font-size: 28px;
  letter-spacing: -0.03em;
}

.summary-meta {
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--primary);
  font-weight: 700;
  white-space: nowrap;
}

.schedule-list {
  display: grid;
  gap: 16px;
}

.schedule-card { overflow: hidden; }

.schedule-head {
  padding: 24px 26px;
  background: linear-gradient(135deg, #ffffff, #eef6ff);
  border-bottom: 1px solid var(--line);
}

.card-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.schedule-head h2 {
  margin: 0;
  color: var(--primary-dark);
  font-size: clamp(24px, 3.2vw, 34px);
  letter-spacing: -0.03em;
}

.schedule-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.fact {
  min-height: 82px;
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}

.fact:last-child { border-right: 0; }

.fact span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.fact strong {
  display: block;
  margin-top: 8px;
  color: #001b3d;
  font-size: 16px;
  line-height: 1.35;
}

.containers-block {
  padding: 0;
  background: #fbfdff;
}

.containers-block summary {
  min-height: 60px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  color: var(--primary-dark);
  font-weight: 700;
}

.containers-block summary::-webkit-details-marker { display: none; }

.containers-block summary strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eaf3fd;
  color: var(--primary);
  font-size: 13px;
}

.containers-toggle {
  margin-left: auto;
  color: var(--muted);
  font-size: 20px;
  transition: transform 0.18s ease;
}

.containers-block[open] .containers-toggle { transform: rotate(180deg); }

.containers-grid {
  padding: 0 24px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.container-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #d4e1ef;
  border-radius: 999px;
  background: #fff;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.muted-text { color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer p {
  margin: 0;
  padding: 26px 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .schedule-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(2n) { border-right: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .container { width: min(100% - 24px, 1120px); }
  .hero { padding: 42px 0 36px; }
  .header-inner { min-height: 60px; }
  .brand-text { font-size: 14px; }
  .header-note { display: none; }
  .form-row { grid-template-columns: 1fr; }
  button { width: 100%; }
  .summary-card { display: block; }
  .summary-meta { margin-top: 12px; display: inline-flex; white-space: normal; }
  .schedule-facts { grid-template-columns: 1fr; }
  .fact,
  .fact:nth-child(n) {
    border-right: 0;
    border-top: 1px solid var(--line);
  }
  .fact:first-child { border-top: 0; }
  .containers-block summary { padding: 0 18px; }
  .containers-grid { padding: 0 18px 18px; }
}
