/* assets/css/common.css - Базовые глобальные стили и модальное окно бронирования */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  line-height: 1.6;
  padding-top: 0;
  margin: 0;
  background: #DCEEFA;
}

/* ============ МОДАЛЬНОЕ ОКНО БРОНИРОВАНИЯ И ОПЛАТЫ ============ */
.mayak-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 11, 24, 0.75);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.mayak-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.mayak-modal-window {
  background: #ffffff;
  color: #0f172a;
  border-radius: 18px;
  max-width: 520px;
  width: 100%;
  padding: 32px;
  position: relative;
  box-sizing: border-box;
  box-shadow: 0 25px 50px -12px rgba(2, 44, 84, 0.35);
  transform: translateY(20px) scale(0.97);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Segoe UI', system-ui, -webkit-system-font, Roboto, Helvetica, Arial, sans-serif;
  border: 1px solid rgba(2, 132, 199, 0.15);
}

.mayak-modal-overlay.is-active .mayak-modal-window {
  transform: translateY(0) scale(1);
}

.mayak-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
}

.mayak-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.mayak-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #e0f2fe;
  color: #0369a1;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.mayak-modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0a1f33;
  margin-bottom: 4px;
}

.mayak-modal-sub {
  color: #64748b;
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.mayak-modal-summary {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.mayak-modal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.9rem;
  color: #475569;
}

.mayak-modal-row .val {
  font-weight: 600;
  color: #0f172a;
}

.mayak-modal-row.total-row {
  border-top: 1px dashed #cbd5e1;
  margin-top: 8px;
  padding-top: 10px;
}

.mayak-modal-row.total-row .lbl {
  font-weight: 700;
  color: #0a1f33;
}

.mayak-modal-row.total-row .total-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0071E3;
}

.mayak-modal-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.modal-field label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-field input {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #ffffff;
}

.modal-field input:focus {
  border-color: #0071E3;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

@media (max-width: 480px) {
  .mayak-modal-window {
    padding: 24px 18px;
  }
  .mayak-modal-form {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.mayak-pay-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  background: #0071E3;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.35);
}

.mayak-pay-btn:hover {
  background: #005BB5;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 113, 227, 0.45);
}

.mayak-pay-note {
  text-align: center;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 10px;
}
