* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f7f7f9;
  color: #1f2937;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header small {
  display: block;
  color: #6b7280;
}

header a {
  color: #ff4b4b;
  font-weight: 800;
  text-decoration: none;
}

main {
  padding: 16px;
  max-width: 720px;
  margin: 0 auto;
}

h1 {
  font-size: 30px;
  margin: 0;
}

h2 {
  margin-bottom: 10px;
}

.hero p {
  color: #6b7280;
}

.card, .appointment {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 16px;
}

form, .form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

label {
  font-weight: 800;
  font-size: 13px;
}

input, select, textarea, button {
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  padding: 12px;
  font-size: 17px;
  width: 100%;
}

textarea {
  min-height: 86px;
}

button, .mainbtn, .outlinebtn {
  font-weight: 900;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 14px;
  margin-bottom: 16px;
}

.mainbtn {
  background: #ff4b4b;
  color: white;
  border: 0;
}

.outlinebtn {
  background: white;
  color: #ff4b4b;
  border: 1px solid #ff4b4b;
}

.full {
  width: 100%;
}

.error {
  background: #fde8e8;
  color: #a50000;
  padding: 12px;
  border-radius: 14px;
  margin-bottom: 12px;
  font-weight: 800;
}

.ok {
  background: #e7f8ee;
  color: #0f7a3b;
  padding: 12px;
  border-radius: 14px;
  margin-bottom: 12px;
  font-weight: 800;
}

.empty {
  background: #eef6ff;
  color: #1d4ed8;
  padding: 14px;
  border-radius: 14px;
}

.time {
  font-weight: 900;
}

.client {
  font-size: 20px;
  font-weight: 900;
  margin-top: 8px;
}

.muted, .services {
  color: #6b7280;
  margin-top: 4px;
}

.done {
  color: #0f7a3b;
  font-weight: 900;
  margin-top: 10px;
}

.info {
  background: #eef6ff;
  color: #1d4ed8;
  padding: 14px;
  border-radius: 14px;
  line-height: 1.5;
}

.service-row {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 12px;
  margin-bottom: 10px;
  background: #ffffff;
}

.row-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.linkbtn {
  background: transparent;
  color: #ff4b4b;
  border: 0;
  min-height: auto;
  padding: 0;
  margin: 0;
  width: auto;
  font-size: 14px;
}

.twocol {
  display: flex;
  gap: 10px;
}

.twocol > div {
  flex: 1;
}

.hidden-row {
  display: none;
}

.cancel {
  color: #6b7280;
  text-align: center;
  text-decoration: none;
  padding: 12px;
}
