:root {
  --ink: #11110f;
  --paper: #ffffff;
  --canvas: #f2f0ea;
  --warm: #e8e3d9;
  --muted: #6a6d67;
  --line: #d9ddd6;
  --accent: #0a7c58;
  --accent-dark: #075c42;
  --danger: #b42318;
  --radius: 8px;
  --safe-bottom: max(20px, env(safe-area-inset-bottom));
}

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

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--canvas);
}

body {
  min-width: 0;
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.45;
}

button,
input,
textarea {
  font: inherit;
}

.app-shell {
  width: min(760px, 100%);
  min-height: 100svh;
  margin: 0 auto;
  padding: 0 22px calc(104px + var(--safe-bottom));
}

.app-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

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

.app-brand img {
  border-radius: 11px;
}

.app-brand span {
  display: grid;
  line-height: 1.15;
}

.app-brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 700;
}

.app-brand small {
  color: var(--muted);
  font-size: 11px;
}

.app-contact {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.app-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 18px 0 28px;
  border-bottom: 1px solid var(--line);
}

.app-tab {
  min-height: 48px;
  padding: 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 750;
}

.app-tab.is-active {
  border-bottom-color: var(--ink);
  color: var(--ink);
}

.app-view {
  display: none;
}

.app-view.is-active {
  display: block;
}

.app-progress {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.app-progress > div {
  height: 4px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 2px;
  background: #e4e7e1;
}

.app-progress i {
  width: 33.333%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--accent);
  transition: width 180ms ease;
}

.app-panel {
  min-height: 610px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(17, 17, 15, 0.08);
}

.app-panel-head p,
.orders-head p {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.app-panel-head h1,
.orders-head h1 {
  margin: 0 0 30px;
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

#app-order-form {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.app-service-grid,
.app-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.app-choice {
  min-width: 0;
  min-height: 122px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
  text-align: left;
}

.app-choice.is-active {
  border-color: var(--ink);
  color: var(--paper);
  background: var(--ink);
}

.app-choice strong {
  font-size: 18px;
}

.app-choice span {
  color: var(--muted);
  font-size: 13px;
}

.app-choice.is-active span {
  color: rgba(255, 255, 255, 0.66);
}

.app-choice.compact {
  min-height: 70px;
  justify-content: center;
}

.app-note {
  margin: 0 0 18px;
  color: var(--muted);
}

.app-field {
  display: grid;
  gap: 8px;
  margin-bottom: 15px;
  font-weight: 760;
}

.app-field input,
.app-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--paper);
  font-weight: 500;
  resize: vertical;
}

.app-field textarea {
  min-height: 116px;
}

.app-fields-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.app-consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.app-consent input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--accent);
}

.app-error {
  margin-top: 16px;
  padding: 12px 14px;
  border-left: 3px solid var(--danger);
  color: var(--danger);
  background: #fff4f2;
  font-weight: 700;
}

.app-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 28px;
}

.app-button {
  min-height: 52px;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 19px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  text-align: center;
}

.app-button-primary {
  color: var(--paper);
  background: var(--accent);
}

.app-button-secondary {
  border-color: var(--line);
  color: var(--ink);
  background: var(--paper);
}

.app-button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.app-success {
  margin: auto 0;
}

.app-success strong {
  display: block;
  margin-bottom: 12px;
  font-size: 34px;
  line-height: 1.08;
}

.app-success p {
  color: var(--muted);
}

.app-success a {
  margin-top: 16px;
  color: var(--accent-dark);
  font-weight: 800;
}

.orders-list {
  display: grid;
  gap: 10px;
}

.order-item,
.orders-empty {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.order-item header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.order-item header span,
.order-item p,
.orders-empty {
  color: var(--muted);
}

.order-item p {
  margin: 0;
}

.order-status {
  width: fit-content;
  display: block;
  margin-top: 14px;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: #e1f0e9;
  font-size: 11px;
  font-weight: 800;
}

.app-overline {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hero {
  padding: 46px 2px 32px;
}

.home-hero h1 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 8vw, 68px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.home-hero > p:last-child {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

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

.quick-services button {
  min-height: 164px;
  display: grid;
  align-content: space-between;
  justify-items: start;
  gap: 6px;
  padding: 20px;
  border: 1px solid rgba(17, 17, 15, 0.1);
  border-radius: 20px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  text-align: left;
}

.quick-services button:first-child {
  grid-column: 1 / -1;
  min-height: 182px;
  color: #f7f5ef;
  background: #101714;
}

.quick-services button > span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.quick-services button:first-child > span {
  color: #76c5a5;
}

.quick-services strong {
  align-self: end;
  font-size: 21px;
  line-height: 1.08;
}

.quick-services small {
  color: var(--muted);
  font-size: 13px;
}

.quick-services button:first-child small {
  color: #aeb7b0;
}

.home-orders-card {
  margin-top: 34px;
  padding: 24px;
  border-radius: 22px;
  background: var(--paper);
}

.home-orders-card > div:first-child {
  display: inline-block;
}

.home-orders-card h2 {
  margin: 0;
  font-size: 25px;
}

.home-orders-card > button {
  float: right;
  padding: 7px 0;
  border: 0;
  color: var(--accent-dark);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.home-orders-card > button span {
  min-width: 22px;
  display: inline-grid;
  place-items: center;
  margin-left: 4px;
  padding: 3px;
  border-radius: 999px;
  color: var(--paper);
  background: var(--accent);
  font-size: 11px;
}

.home-orders {
  clear: both;
  display: grid;
  gap: 8px;
  padding-top: 20px;
}

.home-orders > p {
  margin: 0;
  color: var(--muted);
}

.home-orders button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.home-orders button span {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.concierge-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 19px 21px;
  border-radius: 20px;
  color: var(--paper);
  background: #0f5d49;
  text-decoration: none;
}

.concierge-card div {
  display: grid;
}

.concierge-card small {
  color: rgba(255, 255, 255, 0.7);
}

.concierge-status {
  width: 11px;
  height: 11px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: #75d7af;
}

.install-app {
  width: 100%;
  margin-top: 14px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.bottom-nav {
  position: fixed;
  z-index: 50;
  right: 0;
  bottom: 0;
  left: 0;
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  padding: 9px 12px var(--safe-bottom);
  border-top: 1px solid rgba(17, 17, 15, 0.1);
  background: rgba(242, 240, 234, 0.94);
  backdrop-filter: blur(18px);
}

.bottom-nav button,
.bottom-nav a {
  min-width: 0;
  min-height: 50px;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 4px;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}

.bottom-nav button.is-active {
  color: var(--ink);
}

.bottom-nav span {
  font-size: 22px;
  line-height: 1;
}

.bottom-nav small {
  font-size: 10px;
  font-weight: 800;
}

.success-actions {
  display: grid;
  justify-items: start;
  gap: 16px;
  margin-top: 22px;
}

.app-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 620px) {
  .app-shell {
    padding-right: 14px;
    padding-left: 14px;
  }

  .app-panel {
    min-height: calc(100svh - 210px);
    padding: 22px 16px;
  }

  .app-panel-head h1,
  .orders-head h1 {
    font-size: 31px;
  }

  .app-service-grid,
  .app-option-grid,
  .app-fields-two {
    grid-template-columns: 1fr;
  }

  .app-choice {
    min-height: 92px;
  }

  .app-actions .app-button {
    flex: 1 1 auto;
    min-width: 0;
  }

  .app-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-hero {
    padding-top: 34px;
  }

  .quick-services {
    grid-template-columns: 1fr;
  }

  .quick-services button:first-child {
    grid-column: auto;
  }

  .quick-services button,
  .quick-services button:first-child {
    min-height: 132px;
  }
}

@media (max-width: 340px) {
  .app-shell {
    padding-right: 10px;
    padding-left: 10px;
  }

  .app-contact {
    font-size: 13px;
  }

  .app-panel-head h1,
  .orders-head h1 {
    font-size: 28px;
  }
}
