:root {
  --bg: #f6efe6;
  --bg-deep: #ead8c1;
  --panel: rgba(255, 250, 244, 0.92);
  --panel-strong: #fff8f1;
  --line: #d6c0a8;
  --line-strong: #c49a76;
  --text: #201814;
  --muted: #6f6258;
  --accent: #bf5a36;
  --accent-strong: #94381e;
  --accent-soft: rgba(191, 90, 54, 0.12);
  --success: #2e6b57;
  --shadow: 0 24px 60px rgba(74, 38, 20, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(191, 90, 54, 0.24), transparent 30%),
    radial-gradient(circle at bottom right, rgba(46, 107, 87, 0.18), transparent 28%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

.app-shell {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  padding: 20px 0 36px;
}

.hero {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.hero-copy,
.hero-card,
.panel {
  backdrop-filter: blur(18px);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section-head h2,
.slot-head h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero h1 {
  margin-top: 14px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 0.98;
  max-width: 12ch;
}

.hero p,
.section-head p,
.slot-head p,
.submit-copy {
  color: var(--muted);
}

.hero p {
  margin: 16px 0 0;
  max-width: 56ch;
  line-height: 1.6;
}

.hero-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(255, 246, 238, 0.86)),
    var(--panel);
}

.hero-label,
.hero-note {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-label {
  color: var(--muted);
}

.hero-user {
  margin: 10px 0 12px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.hero-note {
  color: var(--success);
}

.panel {
  padding: 22px;
  margin-bottom: 18px;
}

.section-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.section-step {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.section-head p,
.slot-head p,
.submit-copy {
  margin: 6px 0 0;
  line-height: 1.5;
}

.service-grid,
.specialist-grid {
  display: grid;
  gap: 14px;
}

.service-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.specialist-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.select-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel-strong);
  padding: 18px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.select-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 32px rgba(117, 63, 34, 0.1);
}

.select-card.active {
  border-color: var(--accent);
  box-shadow: 0 20px 36px rgba(191, 90, 54, 0.16);
  background: linear-gradient(180deg, rgba(255, 247, 242, 1), rgba(255, 251, 247, 0.95));
}

.select-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-family: Georgia, "Times New Roman", serif;
}

.service-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent-strong);
}

.service-meta,
.specialist-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
}

.specialist-role {
  color: var(--accent-strong);
  font-weight: 700;
}

.booking-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 18px;
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.month-label {
  text-align: center;
  font-size: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.nav-btn,
.submit-btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.nav-btn {
  min-width: 96px;
}

.weekday-row,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.weekday-row {
  margin-bottom: 10px;
}

.weekday {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.day-cell {
  min-height: 86px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  padding: 10px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.day-cell:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.day-cell.muted {
  opacity: 0.35;
}

.day-cell.unavailable,
.day-cell:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.day-cell.active {
  background: linear-gradient(180deg, rgba(191, 90, 54, 0.18), rgba(255, 248, 243, 0.96));
  border-color: var(--accent);
}

.day-number {
  font-size: 18px;
  font-weight: 700;
}

.day-caption {
  margin-top: 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.slot-head {
  margin: 18px 0 12px;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
}

.slot-btn {
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 48px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

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

.summary-panel {
  align-self: start;
  position: sticky;
  top: 18px;
}

.summary-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  background: var(--panel-strong);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(111, 98, 88, 0.25);
}

.summary-row:last-child {
  border-bottom: 0;
}

.summary-row span {
  color: var(--muted);
}

.total-row strong {
  font-size: 26px;
  color: var(--accent-strong);
}

.notes-block {
  display: grid;
  gap: 8px;
  margin: 16px 0 14px;
}

.notes-block span {
  font-weight: 700;
}

textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  font: inherit;
}

.submit-btn {
  width: 100%;
  min-height: 54px;
}

.submit-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

@media (max-width: 920px) {
  .hero,
  .booking-layout {
    grid-template-columns: 1fr;
  }

  .summary-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .app-shell {
    width: min(100% - 16px, 1180px);
    padding-top: 12px;
  }

  .hero-copy,
  .hero-card,
  .panel {
    border-radius: 22px;
  }

  .hero-copy,
  .panel {
    padding: 18px;
  }

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

  .nav-btn {
    width: 100%;
  }

  .day-cell {
    min-height: 72px;
    padding: 8px;
  }
}
