/* Только переменные --emax-* из @emax/design-system (CLAUDE.md). Свои цвета не задаём. */
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--emax-bg);
  color: var(--emax-text);
  font-family: var(--emax-font-body);
  line-height: 1.5;
}
a { color: var(--emax-teal); }
h1, h2, .ticket-price, .section-title { font-family: var(--emax-font-display); }
h1 { margin: 16px 0; font-size: 1.5rem; line-height: 1.2; }
ul { margin: 0; padding: 0; list-style: none; }

.page { max-width: 720px; margin: 0 auto; padding: 0 var(--emax-space-5); }

.search-route {
  display: grid;
  border: 1px solid var(--emax-border);
  border-radius: var(--emax-radius-card-lg);
  background: var(--emax-surface);
}
.search-route .field { border: 0; background: none; }
.search-route .field + .field { border-top: 1px solid var(--emax-border); border-radius: 0; }
.search-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--emax-space-2);
  margin-top: var(--emax-space-3);
}
.field {
  display: block;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--emax-border);
  border-radius: var(--emax-radius-button);
  background: var(--emax-surface);
}
.field span { display: block; color: var(--emax-muted); font-size: 0.7rem; }
.field input, .field select {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--emax-text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
}
.field input:focus, .field select:focus { outline: none; }
.field:focus-within { outline: 2px solid var(--emax-teal); outline-offset: 1px; }
.field select option { background: var(--emax-surface); color: var(--emax-text); }
.error { display: block; margin-top: var(--emax-space-1); color: var(--emax-coral); }

.button {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 15px;
  border: 0;
  border-radius: var(--emax-radius-button);
  background: var(--emax-teal);
  color: var(--emax-on-accent);
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.button-secondary { border: 1px solid var(--emax-teal); background: transparent; color: var(--emax-teal); }

.section-title {
  margin: var(--emax-space-6) 0 var(--emax-space-2);
  color: var(--emax-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tickets, .destinations { display: grid; gap: 10px; }
.ticket, .destination-card {
  display: flex;
  padding: 14px;
  border: 1px solid var(--emax-border);
  border-radius: var(--emax-radius-card);
  background: var(--emax-surface);
  color: inherit;
  text-decoration: none;
}
.ticket { align-items: center; justify-content: space-between; gap: var(--emax-space-3); }
.destination-card { flex-direction: column; }
a.ticket:hover, .destination-card:hover { border-color: var(--emax-teal); }
.ticket-best { border-color: var(--emax-coral-border); background: var(--emax-coral-tint); }
.ticket-title { font-size: 0.9rem; font-weight: 600; }
.ticket-meta { color: var(--emax-muted); font-size: 0.8rem; }
.ticket-price { flex-shrink: 0; color: var(--emax-teal); font-size: 1.1rem; font-weight: 700; white-space: nowrap; }
.ticket-best .ticket-price { color: var(--emax-coral); }
.note { color: var(--emax-muted); font-size: 0.8rem; }
.notice {
  padding: 14px;
  border-radius: var(--emax-radius-card);
  background: var(--emax-teal-tint);
}

.article h2 { margin: var(--emax-space-6) 0 var(--emax-space-2); font-size: 1.1rem; }
.article p { margin: 0 0 var(--emax-space-3); }
.lead { font-size: 1.05rem; font-weight: 500; }

@media (max-width: 479px) {
  .search-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-options .field:last-child { grid-column: 1 / -1; }
}
