:root {
  --black: #15120f;
  --orange: #f26a21;
  --orange-dark: #c94f12;
  --amber: #ffb84d;
  --green: #10b981;
  --blue: #2563eb;
  --gray: #f6f5f2;
  --line: #e5e7eb;
  --text: #1f2937;
  --muted: #6b7280;
  --white: #ffffff;
  --danger: #b91c1c;
  --success: #0f766e;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, #fffaf4 0, #f6f5f2 260px, #f6f5f2 100%);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
input, select, textarea, button {
  font: inherit;
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: var(--white);
}
textarea { min-height: 96px; resize: vertical; }
label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }

.topbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(21, 18, 15, .96);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 10px 30px rgba(17, 17, 17, .12);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  color: var(--white);
  box-shadow: 0 8px 18px rgba(242, 106, 33, .3);
}
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 14px; }
.nav a:hover { color: var(--orange); }
.page { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 40px; }
.hero, .company-hero {
  min-height: 390px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  padding: clamp(28px, 6vw, 72px);
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 184, 77, .9) 0, rgba(255, 184, 77, 0) 22%),
    linear-gradient(120deg, #15120f 0%, #26201b 55%, #f26a21 100%);
  color: var(--white);
  box-shadow: 0 24px 60px rgba(21, 18, 15, .18);
  position: relative;
  overflow: hidden;
}
.hero::after, .company-hero::after {
  content: "";
  position: absolute;
  right: clamp(18px, 5vw, 70px);
  bottom: -42px;
  width: clamp(190px, 28vw, 360px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
}
.hero h1, .company-hero h1 { font-size: clamp(36px, 7vw, 76px); margin: 0 0 12px; }
.hero p, .company-hero p { max-width: 680px; font-size: 18px; }
.eyebrow { color: #ffd2b7; text-transform: uppercase; font-size: 12px; font-weight: 800; }
.logo { max-height: 78px; max-width: 180px; background: var(--white); border-radius: 8px; padding: 8px; }
.logo-preview { max-width: 180px; max-height: 110px; border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: var(--white); }
.public-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.public-content-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: 18px; margin-bottom: 22px; }
.service-list { display: grid; gap: 12px; }
.service-item { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.service-item:last-child { border-bottom: 0; padding-bottom: 0; }
.service-item strong, .service-item span { display: block; }
.service-item span { color: var(--muted); }
.section, .content-page { display: grid; gap: 22px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.section-head h1, .section-head h2, .content-page h1 { margin: 0; color: var(--black); }
.panel, .card, .stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 14px 34px rgba(17, 17, 17, .06);
}
.card { border-top: 4px solid var(--orange); }
.card:nth-child(2n) { border-top-color: var(--amber); }
.card:nth-child(3n) { border-top-color: var(--green); }
.card:nth-child(4n) { border-top-color: var(--blue); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.cards .card h3 { margin-top: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.stat strong { display: block; font-size: 34px; color: var(--black); }
.stat { border-left: 5px solid var(--orange); }
.stat:nth-child(2n) { border-left-color: var(--green); }
.stat:nth-child(3n) { border-left-color: var(--blue); }
.stat span, .muted { color: var(--muted); }
.share-panel { display: grid; gap: 14px; }
.share-panel h2 { margin: 0; }
.compact-share { grid-template-columns: minmax(220px, .6fr) minmax(0, 1fr); align-items: center; }
.share-field { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; }
.share-field input { font-weight: 700; color: var(--black); background: #fafafa; }
.copy-feedback { min-height: 20px; color: var(--success); font-weight: 800; font-size: 14px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(242, 106, 33, .22);
}
.btn:hover { background: linear-gradient(135deg, var(--orange-dark), #9f3d0d); color: var(--white); }
.btn-light { background: var(--black); color: var(--white); }
.btn-light:hover { background: #333333; }
.btn-danger { background: var(--danger); }
.btn-small { min-height: 34px; padding: 7px 10px; font-size: 13px; }
.button-row, .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.link { color: var(--orange-dark); font-weight: 800; }
.split-band {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 42px);
  box-shadow: 0 14px 34px rgba(17, 17, 17, .05);
}
.split-band h2 { margin: 0 0 10px; color: var(--black); font-size: clamp(26px, 4vw, 42px); }
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.feature-list span {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf4;
  padding: 14px;
  font-weight: 800;
}
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.faq-grid h3 { margin-top: 0; color: var(--black); }
.cta-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: clamp(22px, 4vw, 42px);
  border-radius: 8px;
  background: linear-gradient(120deg, #15120f, #34241a);
  color: var(--white);
  box-shadow: 0 18px 44px rgba(21, 18, 15, .18);
}
.cta-band h2 { margin: 0 0 6px; font-size: clamp(26px, 4vw, 42px); }
.cta-band p { margin: 0; color: #f3d3bf; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-narrow { max-width: 420px; margin: 32px auto; display: grid; gap: 16px; }
.full { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 8px; }
.check input { width: auto; }
.filters { display: grid; grid-template-columns: repeat(4, minmax(160px, 1fr)); gap: 12px; align-items: end; }
.appointment-form { display: grid; gap: 22px; }
.booking-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); gap: 18px; align-items: start; }
.booking-main, .booking-side { display: grid; gap: 16px; }
.booking-side { border: 1px solid #fed7aa; border-radius: 8px; padding: 18px; background: #fff7ed; }
.booking-side h3 { margin: 0; color: var(--black); }
.customer-form { border-top: 1px solid var(--line); padding-top: 20px; }
.calendar-widget { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--white); }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); background: #fffaf4; }
.calendar-toolbar strong { color: var(--black); font-size: 18px; }
.icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  font-weight: 800;
}
.icon-btn:hover { border-color: var(--orange); color: var(--orange-dark); }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-weekdays span { padding: 10px 6px; text-align: center; color: var(--muted); font-size: 12px; font-weight: 800; background: #fafafa; }
.calendar-day {
  min-height: 82px;
  border: 0;
  border-right: 1px solid var(--line);
  border-top: 1px solid var(--line);
  background: var(--white);
  color: var(--black);
  font-weight: 800;
  cursor: pointer;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 10px;
}
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day:hover:not(:disabled) { background: #fff7ed; color: var(--orange-dark); box-shadow: inset 0 0 0 1px #fed7aa; }
.calendar-day.is-empty, .calendar-day.is-past { background: #f9fafb; color: #c4c4c4; cursor: not-allowed; }
.calendar-day.is-today { box-shadow: inset 0 0 0 2px var(--orange); }
.calendar-day.is-selected { background: var(--orange); color: var(--white); }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)); gap: 10px; }
.slot-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  font-weight: 800;
  cursor: pointer;
}
.slot-button:hover, .slot-button.is-selected { border-color: var(--orange); background: var(--orange); color: var(--white); }
.slot-message { grid-column: 1 / -1; margin: 0; color: var(--muted); }
.agenda-board { display: grid; gap: 14px; }
.agenda-day {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
}
.agenda-date {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 18px;
  background: linear-gradient(160deg, var(--black), #3a2a21);
  color: var(--white);
}
.agenda-date strong { font-size: 28px; }
.agenda-date span { color: #d1d5db; font-size: 13px; font-weight: 700; }
.agenda-events { display: grid; gap: 10px; padding: 14px; }
.agenda-event {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  border-left: 5px solid var(--orange);
  border-radius: 8px;
  background: #fffaf4;
  padding: 12px;
}
.agenda-event time { color: var(--black); font-weight: 800; }
.agenda-event strong, .agenda-event span { display: block; }
.agenda-event span { color: var(--muted); }
.agenda-event em {
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  white-space: nowrap;
}
.agenda-event.status-cancelled { border-left-color: var(--danger); opacity: .78; }
.agenda-event.status-completed { border-left-color: var(--success); }
.agenda-event.status-confirmed { border-left-color: var(--black); }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.week-board { display: grid; grid-template-columns: repeat(7, minmax(160px, 1fr)); gap: 10px; overflow-x: auto; }
.week-column { min-width: 160px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: 0 12px 28px rgba(17, 17, 17, .05); }
.week-column header { display: grid; gap: 2px; padding: 12px; background: linear-gradient(160deg, var(--black), #3a2a21); color: var(--white); }
.week-column header span { color: #d1d5db; font-size: 12px; }
.week-events { display: grid; gap: 8px; padding: 10px; }
.week-event { display: grid; gap: 2px; border-left: 4px solid var(--orange); border-radius: 8px; background: #fffaf4; padding: 9px; }
.week-event time { font-weight: 800; color: var(--orange-dark); }
.week-event span { color: var(--muted); font-size: 12px; }
.week-slot {
  display: grid;
  gap: 2px;
  width: 100%;
  border: 1px dashed #fed7aa;
  border-radius: 8px;
  background: #ffffff;
  padding: 9px;
  text-align: left;
  cursor: pointer;
  color: var(--text);
}
.week-slot:hover {
  border-style: solid;
  border-color: var(--orange);
  background: #fff7ed;
  transform: translateY(-1px);
}
.week-slot time { font-weight: 800; color: var(--orange-dark); }
.week-slot span { color: var(--muted); font-size: 12px; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(21, 18, 15, .62);
}
.modal-backdrop[hidden] { display: none; }
.modal-panel {
  width: min(720px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: var(--white);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .28);
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { border-bottom: 1px solid var(--line); padding: 12px; text-align: left; vertical-align: top; }
th { color: var(--black); background: #fafafa; }
.inline { display: inline; }
.alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 14px; background: var(--white); border: 1px solid var(--line); }
.alert-error { border-color: #fecaca; color: var(--danger); background: #fff5f5; }
.alert-success { border-color: #99f6e4; color: var(--success); background: #f0fdfa; }
.ad-slot {
  margin: 22px 0;
  min-height: 92px;
  display: grid;
  place-items: center;
  border: 1px dashed #c7c7c7;
  border-radius: 8px;
  background: #fffaf4;
  color: var(--muted);
  font-weight: 700;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; color: var(--muted); font-size: 14px; }
.site-footer { text-align: center; padding: 24px; color: var(--muted); }

@media (max-width: 760px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .nav { width: 100%; }
  .hero, .company-hero { min-height: 300px; }
  .form-grid, .filters, .booking-layout { grid-template-columns: 1fr; }
  .public-content-grid { grid-template-columns: 1fr; }
  .split-band { grid-template-columns: 1fr; }
  .cta-band { align-items: stretch; flex-direction: column; }
  .calendar-day { min-height: 54px; padding: 8px; }
  .agenda-day, .agenda-event { grid-template-columns: 1fr; }
  .compact-share { grid-template-columns: 1fr; }
  .share-field { grid-template-columns: 1fr; }
  .full { grid-column: auto; }
  .section-head { align-items: stretch; }
  .button-row .btn, .section-head .btn { width: 100%; }
}
