:root {
  --bg: #f6f7f3;
  --surface: #ffffff;
  --surface-strong: #eef4ea;
  --text: #1e2723;
  --muted: #66736c;
  --line: #dfe5dc;
  --green: #2f6d4f;
  --green-dark: #1f4f39;
  --gold: #c28d32;
  --blue: #355c7d;
  --shadow: 0 18px 50px rgba(30, 39, 35, 0.12);
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 28px;
  background: rgba(246, 247, 243, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

.view-switch {
  display: flex;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.switch-button,
.side-link {
  border: 0;
  background: transparent;
  color: var(--muted);
}

.switch-button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 6px;
}

.switch-button.active {
  background: var(--green);
  color: #fff;
}

main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.45fr) minmax(460px, 0.55fr);
  gap: 72px;
  align-items: center;
  min-height: calc(100vh - 155px);
}

.hero-copy {
  padding: 24px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 620px;
  margin-bottom: 18px;
  font-size: clamp(2.45rem, 4.8vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: 2.1rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 14px;
  font-size: 1.02rem;
  letter-spacing: 0;
}

.hero-text {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.13rem;
  line-height: 1.62;
}

.hero-actions,
.form-footer,
.stacked-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.primary-action,
.secondary-action {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 700;
}

.primary-action {
  background: var(--green);
  color: #fff;
}

.primary-action:hover {
  background: var(--green-dark);
}

.secondary-action {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

.secondary-action:hover {
  border-color: var(--green);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-row span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
}

.hero-media {
  height: min(68vh, 620px);
  min-height: 420px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-media img,
.photo-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: -8px;
}

.service-strip span {
  padding: 18px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.page-heading {
  max-width: 760px;
  margin: 26px 0 28px;
}

.page-heading p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}

.page-heading.compact {
  margin-top: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  min-height: 170px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-align: left;
  transition: border-color 0.2s, transform 0.2s;
}

.service-card:hover,
.service-card.selected {
  border-color: var(--green);
  transform: translateY(-2px);
}

.service-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--green);
  font-weight: 800;
}

.service-card p {
  color: var(--muted);
  line-height: 1.46;
}

.request-form,
.booking-panel,
.confirmation-panel,
.table-panel,
.detail-panel,
.ai-panel,
.offer-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.request-form {
  overflow: hidden;
}

.form-section {
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

input,
select {
  min-height: 44px;
  padding: 0 12px;
}

textarea {
  padding: 12px;
  resize: vertical;
}

.photo-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.photo-row img,
.upload-tile {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.upload-tile {
  display: grid;
  place-items: center;
  background: var(--surface-strong);
  color: var(--green);
  font-weight: 800;
}

.form-footer {
  justify-content: flex-end;
  padding: 22px 0 0;
}

.request-form .form-footer {
  padding: 20px 24px;
}

.form-footer.left {
  justify-content: flex-start;
}

.booking-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 16px;
}

.booking-panel {
  padding: 22px;
}

.radio-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  margin-bottom: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
}

.radio-card.selected {
  border-color: var(--green);
  background: var(--surface-strong);
}

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

.slot {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.slot.selected {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.confirmation-panel {
  max-width: 720px;
  margin: 60px auto;
  padding: 34px;
  box-shadow: var(--shadow);
}

.summary-list {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.summary-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-weight: 700;
}

dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}

.workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  min-height: 680px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #20372d;
  color: #fff;
}

.sidebar strong {
  margin-bottom: 18px;
}

.side-link {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.74);
  text-align: left;
}

.side-link.active,
.side-link:hover {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

.workspace-main {
  min-width: 0;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.metric {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
}

.table-panel {
  padding: 18px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.compact-button {
  min-height: 38px;
  padding: 0 12px;
}

.request-list {
  display: grid;
  gap: 8px;
}

.request-item {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.9fr 0.7fr 0.6fr;
  gap: 10px;
  align-items: center;
  min-height: 64px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.request-item button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--green);
  font-weight: 800;
}

.request-item small,
.request-item span {
  color: var(--muted);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 16px;
}

.detail-panel,
.ai-panel {
  padding: 24px;
}

.summary-list.dense {
  gap: 0;
}

.description-text,
.ai-panel p,
.check-list {
  color: var(--muted);
  line-height: 1.58;
}

.check-list {
  padding-left: 18px;
}

.status-note {
  padding: 12px;
  border-left: 4px solid var(--blue);
  background: #eef3f7;
  border-radius: 0 8px 8px 0;
}

.stacked-actions {
  align-items: stretch;
  flex-direction: column;
  margin-top: 20px;
}

.offer-panel {
  overflow: hidden;
}

.offer-row,
.offer-total {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 150px;
  gap: 16px;
  align-items: center;
  min-height: 56px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.offer-row.header {
  min-height: 46px;
  background: var(--surface-strong);
  color: var(--muted);
  font-weight: 800;
}

.offer-total {
  grid-template-columns: minmax(0, 1fr) 190px;
  background: #fff9ed;
  font-size: 1.15rem;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: min(420px, calc(100% - 44px));
  padding: 14px 16px;
  border-radius: 8px;
  background: #20372d;
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .topbar,
  .hero-actions,
  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    position: static;
  }

  .view-switch,
  .brand,
  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .hero,
  .booking-layout,
  .workspace,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    min-height: 280px;
    height: 42vh;
  }

  .service-strip,
  .service-grid,
  .field-grid,
  .metrics,
  .photo-row {
    grid-template-columns: 1fr;
  }

  .slot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .request-item,
  .offer-row,
  .offer-total {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px;
  }

  .sidebar {
    min-height: 0;
  }
}
