:root {
  --bg: #f3f4f6;
  --panel: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #2563eb;
  --danger: #dc2626;
  --font: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
}

.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 16px 60px;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 2px;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  background: #fff;
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
}

.lang-btn.active {
  background: var(--accent);
  color: #fff;
}

.info-card {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.info-text {
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.info-note {
  font-size: 0.86rem;
  color: var(--muted);
}

.form {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.section-title {
  font-weight: 700;
  font-size: 1.05rem;
}

.section-hint {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 4px;
  margin-bottom: 12px;
}

.guest-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: #fafafa;
  margin-bottom: 12px;
}

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

.guest-title {
  font-weight: 700;
}

.guest-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.86rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.field-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.field-note {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}

.field textarea {
  min-height: 88px;
  line-height: 1.35;
  resize: none;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid rgba(37, 99, 235, 0.18);
  border-color: rgba(37, 99, 235, 0.65);
}

@media (min-width: 720px) {
  .guest-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "last first birth"
      "citizenship docnum visa"
      "address address address";
  }

  .field-citizenship,
  .field-doc-number,
  .field-visa {
    justify-content: flex-end;
  }

  .field-visa .field-note {
    font-size: 0.74rem;
  }

  .field-lastname { grid-area: last; }
  .field-firstname { grid-area: first; }
  .field-birth { grid-area: birth; }
  .field-citizenship { grid-area: citizenship; }
  .field-doc-number { grid-area: docnum; }
  .field-visa { grid-area: visa; }
  .field-address { grid-area: address; }
}

.actions {
  display: flex;
  justify-content: flex-end;
}

.btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.btn.block {
  width: 100%;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
}

.btn.secondary {
  background: #fff;
  color: var(--accent);
  border-color: rgba(37, 99, 235, 0.35);
}

.btn.secondary::before {
  content: "+";
  display: inline-block;
  margin-right: 8px;
  font-weight: 900;
}

.btn:active {
  transform: translateY(1px);
}

.link {
  border: none;
  background: none;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.link.danger {
  color: var(--danger);
}

.footer-note {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}
