:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f2f5f7;
  color: #1c2733;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: #f2f5f7;
}

.page {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.fixed-top {
  position: fixed;
  top: 16px;
  left: 50%;
  width: min(980px, calc(100% - 32px));
  transform: translateX(-50%);
}

.brand {
  color: #1c2733;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}

.language-select {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.language-select select {
  min-height: 36px;
  width: auto;
  padding: 6px 32px 6px 10px;
  border-radius: 6px;
  background: white;
}

.compact {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.hero {
  min-height: 240px;
  display: flex;
  align-items: end;
  padding: 30px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(11, 20, 32, 0.08), rgba(11, 20, 32, 0.78)),
    url("https://images.unsplash.com/photo-1436491865332-7a61a109cc05?auto=format&fit=crop&w=1400&q=80") center / cover;
  color: white;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
  opacity: 0.82;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(32px, 8vw, 52px);
  line-height: 1.05;
}

.lead {
  margin-bottom: 0;
  max-width: 680px;
  font-size: 17px;
  line-height: 1.55;
}

.company-subtitle {
  margin: -4px 0 12px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.quick-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 18px;
}

.phone-row {
  display: grid;
  grid-template-columns: minmax(128px, 0.72fr) minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.field-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field-pair > label,
.phone-row > input,
.phone-row > select {
  min-width: 0;
}

.field-pair input,
.field-pair select {
  min-width: 0;
}

.price-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid #d9e0ea;
  border-radius: 8px;
  background: white;
}

.price-panel div {
  display: grid;
  gap: 5px;
}

.price-panel span {
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
}

.price-panel strong {
  font-size: 28px;
  color: #0f766e;
}

.price-panel p {
  max-width: 460px;
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.45;
}

.quick-info div {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid #d9e0ea;
  border-radius: 8px;
  background: white;
}

.quick-info strong {
  font-size: 14px;
}

.quick-info span {
  color: #64748b;
  font-size: 13px;
  line-height: 1.35;
}

.booking-form {
  display: grid;
  gap: 16px;
}

.panel {
  padding: 20px;
  border: 1px solid #d9e0ea;
  border-radius: 8px;
  background: white;
}

.panel h2 {
  font-size: 20px;
}

.section-title {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}

.section-title h2 {
  margin-bottom: 5px;
}

.section-title p {
  margin-bottom: 0;
  color: #64748b;
  font-size: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
}

.grid > label,
.field-pair {
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8fafc;
}

.field-pair > label {
  padding: 0;
  border: 0;
  background: transparent;
}

.wide {
  grid-column: 1 / -1;
}

.field-hint {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid #0f766e;
  border-radius: 6px;
  background: #ecfdf5;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

input,
select,
textarea {
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.3;
  background: white;
  color: #111827;
}

#pickupDate {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  -webkit-appearance: none;
  appearance: none;
}

#pickupDate::-webkit-date-and-time-value {
  display: block;
  width: 100%;
  max-width: 100%;
  text-align: left;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #0f766e;
  outline: 3px solid rgba(15, 118, 110, 0.16);
}

.field-error > span:first-child {
  color: #b91c1c;
}

label.field-error {
  border-color: #fecaca;
  background: #fff7f7;
}

input.field-error,
select.field-error,
textarea.field-error {
  border-color: #dc2626;
  background: #fff7f7;
}

input.field-error:focus,
select.field-error:focus,
textarea.field-error:focus {
  border-color: #dc2626;
  outline-color: rgba(220, 38, 38, 0.18);
}

.field-error-text {
  color: #dc2626;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

textarea {
  resize: vertical;
}

.submit,
.button-link {
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0f766e;
  color: white;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.submit {
  width: 100%;
}

.submit-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid #d9e0ea;
  border-radius: 8px;
  background: white;
}

.submit-bar p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.center {
  text-align: center;
}

.admin-page {
  padding: 20px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-header h1 {
  font-size: 28px;
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #d9e0ea;
  border-radius: 8px;
  background: white;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1900px;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  background: #f8fafc;
  font-weight: 700;
}

.admin-muted {
  margin-top: 6px;
  max-width: 260px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.admin-actions {
  min-width: 240px;
}

.admin-actions form {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.admin-actions input,
.admin-actions select,
.admin-actions button {
  min-height: 34px;
  padding: 6px 8px;
  font-size: 13px;
}

.admin-actions button {
  border: 0;
  border-radius: 6px;
  background: #111827;
  color: white;
  cursor: pointer;
}

@media (max-width: 680px) {
  body {
    -webkit-text-size-adjust: 100%;
  }

  .page {
    padding: 12px 10px 32px;
  }

  .topbar {
    align-items: flex-start;
  }

  .fixed-top {
    top: 12px;
    width: calc(100% - 20px);
  }

  .hero {
    min-height: 250px;
    padding: 22px;
  }

  .quick-info {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 16px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .phone-row {
    grid-template-columns: minmax(112px, 0.78fr) minmax(0, 1fr);
  }

  .field-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .datetime-pair {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .datetime-pair input,
  .datetime-pair select {
    min-height: 44px;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 16px;
    line-height: 1.3;
  }

  .price-panel {
    display: grid;
  }

  .submit-bar {
    display: grid;
  }

  .submit {
    width: 100%;
  }
}
