﻿:root {
  --bg: #0c1220;
  --bg-soft: #101c32;
  --card: #f7f9fc;
  --ink: #111827;
  --muted: #5b6475;
  --brand: #18b7a1;
  --brand-2: #0f8bf0;
  --danger: #c44747;
  --ok: #198754;
  --radius-xl: 28px;
  --radius-lg: 18px;
  --shadow: 0 20px 50px rgba(10, 18, 40, .22);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1000px 500px at 5% -10%, rgba(24,183,161,.28), transparent 70%),
    radial-gradient(900px 500px at 95% 10%, rgba(15,139,240,.25), transparent 70%),
    linear-gradient(145deg, var(--bg) 0%, #091426 50%, var(--bg-soft) 100%);
  min-height: 100vh;
}

.page-shell {
  width: min(1120px, calc(100% - 28px));
  margin: 20px auto 40px;
}

.lang-switch {
  width: min(1120px, calc(100% - 28px));
  margin: 14px auto 0;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.lang-switch a {
  color: #d3def8;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(211, 222, 248, .35);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: .8rem;
}

.lang-switch a:hover {
  background: rgba(211, 222, 248, .15);
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 28px;
  background: rgba(8, 14, 27, 0.75);
  border: 1px solid rgba(141, 162, 204, .2);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.hero__content { position: relative; z-index: 2; }
.hero__glow { position: absolute; border-radius: 999px; filter: blur(60px); opacity: .7; z-index: 1; }
.hero__glow--left { width: 240px; height: 240px; left: -80px; top: -80px; background: rgba(24,183,161,.42); }
.hero__glow--right { width: 260px; height: 260px; right: -90px; top: -50px; background: rgba(15,139,240,.4); }

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow {
  margin: 0;
  color: #90e8dd;
  letter-spacing: .15em;
  font-size: .78rem;
  font-weight: 700;
}

.test-badge {
  border: 1px solid rgba(255, 215, 64, .5);
  background: rgba(255, 215, 64, .18);
  color: #ffe48a;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: .75rem;
  font-weight: 700;
}

h1 {
  margin: 8px 0;
  color: #fff;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  line-height: 1.15;
}

.lead { color: #b8c3dd; margin: 0 0 20px; max-width: 650px; }

.search-form {
  background: rgba(255,255,255,.95);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.search-label { display:block; font-weight: 700; margin-bottom: 8px; }
.search-row { display: flex; gap: 10px; }

.plate-input {
  flex: 1;
  min-width: 0;
  border: 1px solid #d6dded;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
}

.plate-input:focus {
  outline: none;
  border-color: var(--brand-2);
  box-shadow: 0 0 0 4px rgba(15,139,240,.15);
}

.btn-search, .btn-pay {
  border: none;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  padding: 0 20px;
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease;
}

.btn-search {
  background: linear-gradient(120deg, var(--brand-2), var(--brand));
  min-height: 52px;
}

.btn-pay {
  width: 100%;
  min-height: 48px;
  background: linear-gradient(120deg, #0d6efd, #13a6d0);
}

.btn-search:hover, .btn-pay:hover { transform: translateY(-1px); }
.btn-search:disabled, .btn-pay:disabled { cursor: not-allowed; opacity: .56; transform: none; }

.hint { margin: 10px 0 0; color: var(--muted); font-size: .92rem; }

.results { margin-top: 22px; }
.empty {
  text-align: center;
  color: #d4dbef;
  border: 1px dashed rgba(194,205,230,.4);
  border-radius: var(--radius-lg);
  padding: 38px 16px;
}
.empty h2 { color: #fff; margin: 0 0 6px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}

.car-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.car-photo-wrap {
  background: linear-gradient(130deg, #e3ecfb, #f8fbff);
  aspect-ratio: 16/10;
  overflow: hidden;
}

.car-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.car-photo--placeholder {
  display: grid;
  place-items: center;
  color: #708099;
  font-weight: 700;
}

.car-body { padding: 14px; display:flex; flex-direction:column; gap: 12px; }
.plate { font-size: 1.34rem; font-weight: 800; letter-spacing: .03em; }
.meta { display:flex; justify-content:space-between; gap:10px; color: var(--muted); font-size: .9rem; }
.status {
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.status--ok {
  color: #0f5f39;
  background: rgba(25, 135, 84, .18);
  border-color: rgba(25, 135, 84, .35);
}
.status--wait {
  color: #8a520b;
  background: rgba(179, 106, 15, .16);
  border-color: rgba(179, 106, 15, .35);
}
.status--free {
  color: #0b5d9f;
  background: rgba(15, 139, 240, .16);
  border-color: rgba(15, 139, 240, .33);
}

.amount-row {
  border: 1px solid #dde5f4;
  border-radius: 12px;
  padding: 10px 12px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.amount-row strong { font-size: 1.14rem; }

.global-loader {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 11, 23, .6);
  z-index: 9999;
  backdrop-filter: blur(2px);
}

.global-loader.is-visible { display: flex; }

.loader-card {
  background: #0f1b31;
  border: 1px solid rgba(175, 196, 240, .35);
  border-radius: 16px;
  padding: 18px 24px;
  color: #e8f1ff;
  text-align: center;
  min-width: 160px;
}

.loader-spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto 10px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.2);
  border-top-color: #18b7a1;
  animation: spin .8s linear infinite;
}

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

@media (max-width: 720px) {
  .hero { padding: 18px; }
  .search-row { flex-direction: column; }
  .btn-search { width: 100%; }
  .meta { flex-direction: column; }
}
