:root {
  --bg0: #0c1116;
  --bg1: #141c24;
  --bg2: #1c2733;
  --surface: rgba(28, 39, 51, 0.85);
  --line: rgba(232, 236, 239, 0.08);
  --text: #eef2f5;
  --muted: #8fa0b0;
  --accent: #d4a84b;
  --accent-2: #7eb8c9;
  --danger: #e26d6d;
  --ok: #6cbc86;
  --radius: 18px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(212, 168, 75, 0.12), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(126, 184, 201, 0.1), transparent 50%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 40%, #0a0e12);
  min-height: 100vh;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(12, 17, 22, 0.72);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 0; gap: 1rem;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.35rem; letter-spacing: -0.03em;
  color: var(--text); text-decoration: none;
}
.brand span { color: var(--accent); }
.header-meta { display: flex; align-items: center; gap: 1.25rem; color: var(--muted); font-size: 0.92rem; }
.header-meta a { color: var(--text); text-decoration: none; border-bottom: 1px solid transparent; }
.header-meta a:hover { border-color: var(--accent); }
.header-tag {
  font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent); opacity: .95;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: none; cursor: pointer; font-family: inherit; font-weight: 600;
  padding: 0.85rem 1.35rem; border-radius: 999px; font-size: 0.95rem;
  transition: transform .15s ease, filter .15s ease, background .15s ease;
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-primary { background: var(--accent); color: #15110a; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: .55rem 1rem; font-size: .85rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.hero {
  position: relative; min-height: min(92vh, 820px);
  display: grid; align-items: end;
  overflow: hidden;
}
.hero-van {
  min-height: min(100svh, 900px);
  min-height: min(100dvh, 900px);
}
.hero-van .hero-media {
  background-position: center 40%;
}
.hero-media {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.02);
  animation: heroZoom 18s ease-in-out infinite alternate;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,12,16,.75) 0%, rgba(8,12,16,.35) 48%, rgba(8,12,16,.2) 100%),
    linear-gradient(180deg, rgba(12,17,22,.2) 0%, rgba(12,17,22,.45) 42%, rgba(12,17,22,.94) 100%);
}
@keyframes heroZoom { from { transform: scale(1.02); } to { transform: scale(1.08); } }
.hero-content {
  position: relative; z-index: 1; padding: 0 0 3.5rem;
  animation: rise .9s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-kicker {
  margin: 0 0 .75rem; font-size: .82rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  animation: rise .7s ease both;
}
.hero-brand {
  font-family: var(--font-display); font-size: clamp(2.8rem, 8vw, 5.2rem);
  font-weight: 700; letter-spacing: -0.04em; line-height: 0.95; margin: 0 0 1rem;
}
.hero-brand em { font-style: normal; color: var(--accent); }
.hero p.lead {
  max-width: 34rem; color: #c5d0da; font-size: 1.12rem; margin: 0 0 1.35rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero-book {
  width: min(100%, 920px);
  padding: 1rem;
  border-radius: 16px;
  background: rgba(12, 17, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: rise 1s ease both;
  display: grid;
  gap: .85rem;
  grid-template-columns: 1fr;
}
.hero-book label { color: #b8c4cf; }
.hero-book input,
.hero-book select {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.14);
}
.hero-book .btn { white-space: nowrap; min-width: 7.5rem; }
.hero-book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: stretch;
}
.hero-book-actions .btn { flex: 1 1 12rem; }
.hero-span-2 { grid-column: 1 / -1; }
.hero-span-full { grid-column: 1 / -1; }
.hero-slots {
  margin-top: .15rem;
  padding: .85rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.28);
}
.hero-slots-title {
  margin: 0 0 .65rem;
  font-size: .88rem;
  font-weight: 600;
  color: #e8eef3;
}
.hero-slots-list {
  display: grid;
  gap: .45rem;
}
.hero-slot-btn {
  text-align: left;
  width: 100%;
  padding: .7rem .85rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.hero-slot-btn:hover { border-color: rgba(212,168,75,.4); }
.hero-slot-btn.selected {
  border-color: rgba(212,168,75,.55);
  background: rgba(212,168,75,.14);
}
.hero-slots-note,
.hero-slots-empty {
  margin: .65rem 0 0;
  font-size: .8rem;
  color: rgba(197, 208, 218, 0.85);
}
.hero-book-hint {
  margin: .75rem 0 0;
  font-size: .85rem;
  color: rgba(197, 208, 218, 0.85);
}

.vehicle-type {
  margin: 0 0 .35rem; font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
}
.vehicle-title {
  font-family: var(--font-display); font-size: 1.65rem; margin: 0 0 .35rem; letter-spacing: -0.03em;
}
.vehicle-meta { color: var(--muted); margin: 0 0 1rem; }
.vehicle-desc { color: var(--muted); }
.feature-list { color: var(--muted); padding-left: 1.1rem; }
.discount-label { margin: .5rem 0 0; font-size: .85rem; color: var(--muted); }

.page-home {
  background:
    radial-gradient(1100px 520px at 8% -8%, rgba(212, 168, 75, 0.14), transparent 55%),
    radial-gradient(800px 480px at 92% 8%, rgba(90, 120, 100, 0.12), transparent 50%),
    linear-gradient(180deg, #0b1014, #121a22 42%, #090d10);
}

.section { padding: 4rem 0; }
.section h2 {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em; margin: 0 0 .5rem;
}
.section .sub { color: var(--muted); margin: 0 0 2rem; max-width: 40rem; }

.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.vehicle-grid { display: grid; gap: 1.5rem; }
.vehicle-grid.multi { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.vehicle-showcase { display: grid; gap: 1.5rem; }

.gallery { position: relative; border-radius: calc(var(--radius) - 4px); overflow: hidden; aspect-ratio: 16/10; background: var(--bg2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: .5rem; margin-top: .75rem; overflow-x: auto; }
.gallery-thumbs button {
  border: 2px solid transparent; padding: 0; border-radius: 10px; overflow: hidden;
  width: 72px; height: 52px; cursor: pointer; background: none; flex-shrink: 0;
}
.gallery-thumbs button.active { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin: 1.25rem 0; }
.spec {
  padding: .85rem 1rem; border-radius: 12px; background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
}
.spec small { display: block; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.spec strong { font-size: 1.05rem; }

.search-form { display: grid; gap: 1rem; }
label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: .35rem; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field > label { margin-bottom: .35rem; }
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  width: 100%; padding: .75rem .9rem; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(0,0,0,.25); color: var(--text);
  font: inherit; line-height: 1.35;
}
select {
  min-height: 48px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238fa0b0' d='M1.5 1.5 6 6l4.5-4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  padding-right: 2.2rem;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: rgba(212,168,75,.55); box-shadow: 0 0 0 3px rgba(212,168,75,.15);
}
.form-grid { display: grid; gap: 1rem; }
.form-section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text);
}
.form-section-hint {
  margin: -.35rem 0 0;
  font-size: .88rem;
  color: var(--muted);
}
.form-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: .25rem 0;
}
.form-reveal {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .12);
}
.form-reveal[hidden] {
  display: none !important;
}
.choice-group { display: grid; gap: .55rem; }
.choice-option {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0;
  padding: .8rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .15);
  color: var(--text);
  font-size: .92rem;
  cursor: pointer;
}
.choice-option span { flex: 1; line-height: 1.35; }
.choice-option:has(input:checked) {
  border-color: rgba(212, 168, 75, .45);
  background: rgba(212, 168, 75, .08);
}
.choice-option input[type="checkbox"],
.choice-option input[type="radio"] {
  width: 1.05rem;
  height: 1.05rem;
  min-height: auto;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--accent);
}
.toggle-option { margin-top: .15rem; }
.checkbox { display: flex; gap: .6rem; align-items: center; color: var(--muted); font-size: .92rem; }
.checkbox input { width: auto; min-height: auto; margin: 0; flex-shrink: 0; }

.discount-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(212,168,75,.15); color: var(--accent);
  border: 1px solid rgba(212,168,75,.3); border-radius: 999px;
  padding: .35rem .75rem; font-size: .82rem; font-weight: 600;
}
.discount-list { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }

.hold-banner {
  position: sticky; top: 64px; z-index: 30;
  background: linear-gradient(90deg, rgba(212,168,75,.2), rgba(126,184,201,.15));
  border-bottom: 1px solid var(--line); padding: .75rem 0;
}
.hold-banner .inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.hold-timer { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--accent); }

.steps-nav {
  display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}
.steps-nav span {
  font-size: .8rem; color: var(--muted); padding: .35rem .7rem;
  border-radius: 999px; border: 1px solid var(--line);
}
.steps-nav span.on { color: var(--text); border-color: var(--accent); background: rgba(212,168,75,.12); }

.site-footer {
  border-top: 1px solid var(--line); padding: 2rem 0 3rem; margin-top: 2rem;
  color: var(--muted); font-size: .9rem;
}
.site-footer .inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-links button {
  background: none; border: none; color: var(--muted); cursor: pointer; font: inherit; padding: 0;
}
.footer-links button:hover { color: var(--accent); }

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 1rem;
}
.modal-backdrop.open { display: flex; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: min(640px, 100%); max-height: min(85vh, 800px); overflow: auto;
  background: var(--bg1); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.modal h3 { margin-top: 0; font-family: var(--font-display); }
.modal-close { float: right; background: none; border: none; color: var(--muted); font-size: 1.4rem; cursor: pointer; }

.alert {
  padding: .85rem 1rem; border-radius: 12px; margin-bottom: 1rem;
  border: 1px solid var(--line);
}
.alert-info { background: rgba(126,184,201,.12); border-color: rgba(126,184,201,.3); }
.alert-ok { background: rgba(108,188,134,.12); border-color: rgba(108,188,134,.3); }
.alert-warn { background: rgba(212,168,75,.12); border-color: rgba(212,168,75,.35); }
.alert-error { background: rgba(226,109,109,.12); border-color: rgba(226,109,109,.35); }

.ssn-hint {
  font-size: .82rem; color: var(--muted); margin-top: .35rem;
  padding: .65rem .8rem; border-radius: 10px; background: rgba(126,184,201,.08);
  border: 1px solid rgba(126,184,201,.2);
}

.extras-list { display: grid; gap: .75rem; }
.extra-item {
  display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center;
  padding: 1rem; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.02);
}
.extra-item label { margin: 0; color: var(--text); font-size: 1rem; }
.extra-item small { color: var(--muted); display: block; }

.summary-table { width: 100%; border-collapse: collapse; }
.summary-table td { padding: .55rem 0; border-bottom: 1px solid var(--line); }
.summary-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.summary-table tr.total td { border-bottom: none; font-weight: 700; font-size: 1.1rem; padding-top: 1rem; }

.return-booking {
  position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%);
  z-index: 50; width: min(560px, calc(100% - 2rem));
  background: var(--bg2); border: 1px solid var(--accent);
  border-radius: 16px; padding: 1rem 1.15rem; box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  animation: rise .4s ease;
}

.admin-body { background: #0e1318; }
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-nav {
  background: #121920; border-right: 1px solid var(--line); padding: 1.25rem 1rem;
  position: sticky; top: 0; height: 100vh; overflow: auto;
}
.admin-nav .brand { display: block; margin-bottom: 1.5rem; font-size: 1.1rem; }
.admin-nav a {
  display: block; padding: .55rem .75rem; border-radius: 10px; color: var(--muted);
  text-decoration: none; margin-bottom: .2rem; font-size: .92rem;
}
.admin-nav a:hover, .admin-nav a.active { background: rgba(212,168,75,.12); color: var(--text); }
.admin-main { padding: 1.5rem; }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; gap: 1rem; flex-wrap: wrap; }

.gps-map-panel {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.gps-map-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: .85rem;
}
.gps-map-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.gps-map-status {
  margin: .25rem 0 0;
  font-size: .85rem;
  color: var(--muted);
}
.gps-map-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 1rem;
  align-items: stretch;
}
.gps-map {
  min-height: 380px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #1a2330;
}
.gps-vehicle-list {
  display: grid;
  gap: .5rem;
  align-content: start;
  max-height: 380px;
  overflow: auto;
}
.gps-vehicle-item {
  display: grid;
  gap: .15rem;
  text-align: left;
  padding: .7rem .8rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.18);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.gps-vehicle-item:hover { border-color: rgba(212,168,75,.45); }
.gps-vehicle-item span { color: var(--muted); font-size: .85rem; }
.gps-vehicle-item small { color: var(--muted); font-size: .78rem; }
.gps-map-empty {
  margin: 0;
  font-size: .88rem;
  color: var(--muted);
}
.gps-map-marker {
  background: transparent;
  border: none;
}
.gps-map-marker span {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(212,168,75,.35);
}
.gps-map-marker.offline span {
  background: #8fa0b0;
  box-shadow: 0 0 0 2px rgba(143,160,176,.35);
}
.gps-test-box {
  display: grid;
  gap: .65rem;
  padding: .85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.12);
}
.gps-test-cache {
  margin: 0;
  font-size: .85rem;
  color: var(--muted);
}
.leaflet-container {
  font-family: var(--font-body);
  background: #1a2330;
}
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 14px; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td { padding: .75rem .9rem; text-align: left; border-bottom: 1px solid var(--line); }
table.data th { color: var(--muted); font-weight: 600; background: rgba(255,255,255,.02); }
.badge {
  display: inline-block; padding: .2rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600;
  background: rgba(255,255,255,.06);
}
.badge-paid, .badge-active { background: rgba(108,188,134,.2); color: #9ee0b2; }
.badge-hold, .badge-pending_payment { background: rgba(212,168,75,.2); color: #efd08a; }
.badge-cancelled { background: rgba(226,109,109,.2); color: #f0a0a0; }

.week-cal { display: grid; grid-template-columns: 56px repeat(7, 1fr); gap: 1px; background: var(--line); border-radius: 12px; overflow: hidden; }
.week-cal .head, .week-cal .time, .week-cal .cell {
  background: var(--bg1); min-height: 28px; position: relative; font-size: .7rem;
}
.week-cal .head { padding: .5rem; text-align: center; color: var(--muted); position: sticky; top: 0; }
.week-cal .time { padding: .25rem; color: var(--muted); text-align: right; }
.week-cal .cell { cursor: pointer; }
.week-cal .cell:hover { background: rgba(212,168,75,.08); }
.week-cal .busy { background: rgba(226,109,109,.25) !important; }
.week-cal .discount-block {
  position: absolute; inset: 1px; border-radius: 4px; padding: 2px 4px;
  font-size: .65rem; overflow: hidden; color: #111; font-weight: 600;
}

.chat-box { display: flex; flex-direction: column; gap: .75rem; max-height: 420px; overflow: auto; }
.chat-msg { padding: .75rem 1rem; border-radius: 12px; max-width: 85%; }
.chat-msg.customer { background: rgba(126,184,201,.15); align-self: flex-start; }
.chat-msg.admin { background: rgba(212,168,75,.15); align-self: flex-end; }
.chat-msg time { display: block; font-size: .72rem; color: var(--muted); margin-top: .35rem; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; }
.photo-slot {
  aspect-ratio: 1; border: 1px dashed var(--line); border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: .5rem; font-size: .8rem; color: var(--muted); position: relative; overflow: hidden;
}
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-slot input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.inout-grid { display: grid; gap: 1rem; }
.inout-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  padding: 1rem; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
}
.inout-card .in { border-left: 3px solid var(--ok); padding-left: .75rem; }
.inout-card .out { border-left: 3px solid var(--accent-2); padding-left: .75rem; }

.header-phone-short { display: none; }
.header-phone { white-space: nowrap; }

/* —— Responsive / mobile-first polish —— */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { padding-bottom: env(safe-area-inset-bottom, 0); }
.site-header {
  padding-top: env(safe-area-inset-top, 0);
}
.container {
  width: min(1120px, calc(100% - 1.5rem));
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

/* Prevent iOS zoom on focus: inputs ≥ 16px */
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  font-size: 1rem;
  min-height: 48px;
  max-width: 100%;
}
textarea { min-height: 96px; }
.btn {
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn-sm { min-height: 42px; }

.gallery-thumbs {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: .15rem;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumbs button {
  width: 76px; height: 56px;
  min-width: 76px;
}

@media (max-width: 899px) {
  .hero,
  .hero-van {
    min-height: auto;
    padding-top: 2.5rem;
  }
  .hero-media {
    position: absolute;
    inset: 0;
  }
  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(8,12,16,.45) 0%, rgba(8,12,16,.62) 28%, rgba(8,12,16,.92) 68%, #0b1014 100%);
  }
  .hero-van .hero-media { background-position: center center; }
  .hero-content { padding: 0 0 1.75rem; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; width: 100%; }
  .hero-book { padding: .9rem; }
  .hero-book .btn { width: 100%; min-width: 0; }
  .hero-book-hint { font-size: .8rem; }
  .section { padding: 2.75rem 0; }
  .panel { padding: 1.15rem; border-radius: 14px; }
  .vehicle-grid.multi { grid-template-columns: 1fr; }
  .specs { gap: .6rem; }
  .spec { padding: .75rem .85rem; }
  .return-booking {
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    left: 0.75rem; right: 0.75rem; width: auto;
    transform: none;
    flex-direction: column; align-items: stretch;
    text-align: left;
  }
  .return-booking > div:last-child {
    display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
  }
  .return-booking .btn { width: 100%; }
  .site-footer { padding: 1.5rem 0 calc(2rem + env(safe-area-inset-bottom)); }
  .site-footer .inner { flex-direction: column; align-items: flex-start; gap: .85rem; }
  .footer-links { gap: .85rem 1.1rem; }
  .modal-backdrop { padding: .75rem; align-items: flex-end; }
  .modal {
    width: 100%; max-height: min(90dvh, 900px);
    border-radius: 16px 16px 12px 12px;
    padding: 1.15rem;
  }
  .modal-close {
    width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .extra-item { grid-template-columns: 1fr; gap: .5rem; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .hold-banner .inner { flex-direction: column; align-items: flex-start; gap: .35rem; }
}

@media (max-width: 640px) {
  .container { width: min(1120px, calc(100% - 1.25rem)); }
  .site-header .inner {
    padding: 0.7rem 0;
    gap: .65rem;
    flex-wrap: nowrap;
  }
  .brand {
    font-size: 1.1rem;
    max-width: 55%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .header-meta { gap: .55rem; font-size: .8rem; flex-shrink: 0; }
  .header-tag { display: none; }
  .header-phone-full { display: none; }
  .header-phone-short {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 40px; padding: 0 .85rem;
    border: 1px solid var(--line); border-radius: 999px;
    color: var(--text); font-weight: 600; font-size: .85rem;
  }
  .hero-brand {
    font-size: clamp(2.15rem, 11vw, 3.1rem);
    line-height: 1.02;
    margin-bottom: .75rem;
  }
  .hero p.lead {
    font-size: 1rem; line-height: 1.5; margin-bottom: 1rem;
    max-width: none;
  }
  .section { padding: 2.25rem 0; }
  .section .sub { margin-bottom: 1.25rem; font-size: .95rem; }
  .vehicle-title { font-size: 1.35rem; }
  .gallery { aspect-ratio: 4/3; border-radius: 12px; }
  .discount-chip {
    font-size: .78rem; padding: .4rem .7rem;
    max-width: 100%;
  }
  .discount-list { gap: .4rem; }
  .form-grid.two { grid-template-columns: 1fr; }
  .steps-nav { gap: .35rem; }
  .steps-nav span { font-size: .72rem; padding: .3rem .55rem; }
}

@media (max-width: 380px) {
  .specs { grid-template-columns: 1fr; }
  .hero-actions .btn { font-size: .92rem; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 640px) {
  .form-grid.two { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 720px) {
  .search-form { grid-template-columns: 1fr 1fr auto; align-items: end; }
  .hero-book {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
  }
  .hero-book .hero-span-2 { grid-column: 1 / -1; }
  .hero-book .hero-span-full { grid-column: 1 / -1; }
}

@media (min-width: 720px) and (max-width: 899px) {
  .search-form {
    grid-template-columns: 1fr 1fr;
  }
  .search-form .btn { grid-column: 1 / -1; width: 100%; }
  .hero-book {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 719px) {
  .search-form,
  .hero-book { grid-template-columns: 1fr; }
  .search-form .btn,
  .hero-book-actions .btn { width: 100%; }
}

@media (min-width: 900px) {
  .vehicle-showcase { grid-template-columns: 1.2fr 1fr; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media { animation: none; }
  .hero-content, .hero-kicker, .return-booking { animation: none; }
}

@media (max-width: 860px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-nav { position: relative; height: auto; }
  .gps-map-layout { grid-template-columns: 1fr; }
  .gps-map { min-height: 300px; }
  .gps-vehicle-list { max-height: none; }
  .inout-card { grid-template-columns: 1fr; }
}

.booking-main { padding-top: 2rem; }
.booking-layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
  max-width: 1100px;
}
@media (min-width: 900px) {
  .booking-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}
.booking-summary-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 5.5rem;
}
.booking-summary-card h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 .75rem;
  letter-spacing: -0.02em;
}
.bs-vehicle {
  margin: 0 0 .35rem;
  font-weight: 700;
  font-size: 1.05rem;
}
.bs-time {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: .92rem;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .5rem;
  align-items: center;
}
.promo-box {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.promo-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .5rem;
  align-items: stretch;
}
.promo-applied {
  margin: 0 0 .65rem;
  font-size: .9rem;
  color: var(--ok);
}
@media (max-width: 899px) {
  .booking-summary-card {
    position: relative;
    top: 0;
    order: -1;
  }
  .booking-layout {
    display: flex;
    flex-direction: column;
  }
  .booking-flow { order: 1; }
}

