:root {
  --paper: rgba(255, 255, 255, 0.93);
  --ink: #253629;
  --muted: #6f8671;
  --line: rgba(78, 113, 80, 0.16);
  --brand: #7a9b74;
  --brand-dark: #4d7d4f;
  --brand-soft: rgba(122, 155, 116, 0.14);
  --accent: #efe2a0;
  --accent-soft: rgba(239, 226, 160, 0.28);
  --danger: #b42318;
  --success: #12715b;
  --shadow: 0 22px 45px rgba(70, 95, 67, 0.14);
  --radius-xl: 28px;
  --radius-lg: 20px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Helvetica Neue", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(239, 226, 160, 0.3), transparent 28%),
    linear-gradient(135deg, rgba(122, 155, 116, 0.12), transparent 24%),
    linear-gradient(180deg, #fbfcf8 0%, #f1f6ee 58%, #f8fbf6 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 34, 45, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 34, 45, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.2), transparent 72%);
}

.page-shell {
  width: min(1400px, calc(100% - 32px));
  margin: 32px auto 48px;
}

.hero,
.top-tabs,
.info-strip,
.toolbar,
.category-block,
.snapshot-card {
  backdrop-filter: blur(16px);
}

.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 24px;
  padding: 32px;
  border-radius: var(--radius-xl);
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.brand-logo {
  display: block;
  width: min(260px, 60vw);
  margin-bottom: 18px;
  height: auto;
}

.eyebrow,
.summary-kicker,
.info-label,
.snapshot-label,
.category-name {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand);
}

.hero h1,
.toolbar h2,
.category-title,
.contact-section h2 {
  margin: 0;
}

.hero h1 {
  max-width: 16ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 4vw, 4.9rem);
  line-height: 1.02;
}

.hero-text,
.info-strip p,
.snapshot-card span,
.summary-card span,
.summary-card small,
.contact-copy p,
.mail-note {
  color: var(--muted);
}

.hero-text {
  margin: 20px 0 0;
  max-width: 72ch;
  font-size: 1.05rem;
  line-height: 1.7;
}

.summary-panel {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(250, 252, 247, 0.98), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(122, 155, 116, 0.12);
}

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

.summary-card {
  padding: 18px;
  min-height: 118px;
  border-radius: var(--radius-lg);
  background: white;
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.summary-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.8rem;
  line-height: 1;
}

.summary-card small {
  display: block;
  margin-top: 8px;
  font-size: 0.92rem;
}

.summary-card.accent {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  border-color: transparent;
}

.summary-card.accent span,
.summary-card.accent strong,
.summary-card.accent small {
  color: white;
}

.summary-card.accent.negative-total {
  background: linear-gradient(135deg, #b42318, #7a1f18);
}

.summary-note {
  margin: 18px 0 0;
  line-height: 1.6;
}

.summary-actions,
.contact-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

button {
  font: inherit;
  cursor: pointer;
}

.secondary-button,
.ghost-button,
.filter-chip {
  border-radius: 999px;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.secondary-button:hover,
.ghost-button:hover,
.filter-chip:hover {
  transform: translateY(-1px);
}

.secondary-button,
.ghost-button {
  padding: 12px 18px;
  border: 1px solid var(--line);
}

.secondary-button {
  background: var(--brand);
  color: white;
  border-color: transparent;
}

.ghost-button {
  background: transparent;
  color: var(--ink);
}

.secondary-button:disabled,
.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.info-strip > div,
.top-tabs,
.toolbar,
.category-block,
.snapshot-card,
.contact-section {
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.top-tabs {
  display: inline-flex;
  gap: 10px;
  padding: 10px;
  margin-top: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

.top-tab {
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(122, 155, 116, 0.16);
  background: transparent;
  color: var(--brand-dark);
  font-weight: 700;
}

.top-tab.active {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: white;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.info-strip > div {
  padding: 22px;
  border-radius: 22px;
}

.info-strip p {
  margin: 0;
  line-height: 1.65;
}

.toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  margin-top: 28px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(239, 226, 160, 0.18), transparent 30%),
    var(--paper);
}

.toolbar h2,
.contact-section h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 3rem);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-dark);
}

.filter-chip.active {
  background: var(--brand-dark);
  color: white;
  border-color: var(--brand-dark);
}

.market-snapshot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.bundle-note {
  margin-top: 20px;
  padding: 24px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(122, 155, 116, 0.12), rgba(239, 226, 160, 0.14)),
    var(--paper);
  border: 1px solid rgba(122, 155, 116, 0.18);
  box-shadow: var(--shadow);
}

.bundle-note-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.2;
}

.bundle-note-text {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.bundle-note-list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--ink);
  line-height: 1.7;
}

.bundle-note-foot {
  margin: 14px 0 0;
  color: var(--brand-dark);
  font-weight: 700;
  line-height: 1.6;
}

.snapshot-card {
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 246, 0.96));
}

.snapshot-card strong {
  display: block;
  margin: 10px 0;
  font-size: 2rem;
}

.snapshot-card.highlight {
  background: linear-gradient(135deg, #fbf8e8, #ffffff);
  border-color: rgba(122, 155, 116, 0.24);
}

.services-container {
  display: grid;
  gap: 22px;
  margin-top: 24px;
}

.category-block {
  padding: 24px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 250, 244, 0.97));
}

.category-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.category-title {
  font-size: 1.35rem;
  line-height: 1.3;
}

.category-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  white-space: nowrap;
  font-weight: 700;
}

.table-wrapper {
  overflow-x: auto;
}

.service-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 1100px;
}

.service-table thead th {
  padding: 14px 16px;
  text-align: left;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.service-table tbody td {
  padding: 16px;
  vertical-align: middle;
  border-top: 1px solid var(--line);
}

.service-label {
  max-width: 50ch;
  font-weight: 600;
  line-height: 1.45;
}

.price-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}

.price-badge.brand {
  background: var(--brand-soft);
  color: var(--brand);
}

.price-badge.market {
  background: var(--accent-soft);
  color: var(--brand-dark);
}

.market-cell {
  display: grid;
  gap: 10px;
}

.price-input-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: min(220px, 100%);
  padding: 10px 14px;
  border-radius: 14px;
  background: white;
  border: 1px solid var(--line);
}

.price-input-group input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
}

.saving-cell strong {
  display: block;
  font-size: 1.05rem;
}

.saving-cell span {
  color: var(--muted);
  font-size: 0.92rem;
}

.saving-cell.positive strong {
  color: var(--success);
}

.saving-cell.negative strong {
  color: var(--danger);
}

.contact-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  margin-top: 24px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(239, 226, 160, 0.12), transparent 30%),
    var(--paper);
}

.contact-copy p {
  line-height: 1.7;
}

.selected-services {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--ink);
  line-height: 1.7;
}

.selected-services li + li {
  margin-top: 8px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fefefb, #f6faf2);
  border: 1px solid rgba(122, 155, 116, 0.12);
  max-width: 520px;
  width: 100%;
  justify-self: end;
  align-content: start;
}

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

.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-form input {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: white;
  font: inherit;
  color: var(--ink);
}

.contact-form input:focus {
  outline: 2px solid rgba(122, 155, 116, 0.18);
  border-color: rgba(122, 155, 116, 0.38);
}

.mail-note {
  margin: 0;
  line-height: 1.6;
  font-size: 0.92rem;
}

.recap-panel {
  margin-top: 24px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(239, 226, 160, 0.14), transparent 22%),
    var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.recap-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.recap-hero h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 3rem);
}

.recap-text {
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.7;
}

.recap-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.recap-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.recap-card {
  padding: 24px;
  border-radius: 22px;
  background: white;
  border: 1px solid var(--line);
}

.recap-card span,
.recap-card small {
  color: var(--muted);
}

.recap-card strong {
  display: block;
  margin-top: 10px;
  font-size: 2rem;
  line-height: 1;
}

.recap-card small {
  display: block;
  margin-top: 8px;
}

.recap-card.accent {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  border-color: transparent;
}

.recap-card.accent span,
.recap-card.accent strong,
.recap-card.accent small {
  color: white;
}

.recap-card.accent.negative-total {
  background: linear-gradient(135deg, #b42318, #7a1f18);
}

.recap-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  margin-top: 24px;
}

.recap-summary-block,
.recap-contact-block {
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f8fbf6);
  border: 1px solid var(--line);
}

.recap-summary-block h3,
.recap-contact-block h3 {
  margin-top: 0;
}

.recap-contact-block p,
.mini-contact-status {
  color: var(--muted);
  line-height: 1.7;
}

.mini-contact-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 600;
}

.footnote {
  margin: 18px 4px 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 1100px) {
  .hero,
  .toolbar,
  .info-strip,
  .market-snapshot,
  .contact-section,
  .recap-cards,
  .recap-layout {
    grid-template-columns: 1fr;
  }

  .toolbar {
    align-items: start;
  }

  .recap-hero {
    flex-direction: column;
  }

  .contact-form {
    justify-self: stretch;
    max-width: none;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 16px, 100%);
    margin: 8px auto 24px;
  }

  .hero,
  .toolbar,
  .category-block,
  .contact-section,
  .recap-panel {
    padding: 18px;
  }

  .hero h1 {
    max-width: none;
    font-size: 2.35rem;
    text-align: center;
  }

  .hero-copy,
  .summary-panel,
  .toolbar,
  .toolbar-copy,
  .contact-copy,
  .recap-hero,
  .recap-summary-block,
  .recap-contact-block,
  .footnote {
    text-align: center;
  }

  .brand-logo {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-text,
  .summary-note,
  .recap-text,
  .contact-copy p {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .top-tabs {
    width: 100%;
    justify-content: center;
  }

  .top-tab {
    flex: 1 1 0;
    text-align: center;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .summary-actions,
  .contact-actions,
  .recap-actions {
    flex-direction: column;
  }

  .contact-fields {
    grid-template-columns: 1fr;
  }

  .filter-group,
  .summary-actions,
  .contact-actions,
  .recap-actions {
    align-items: stretch;
    justify-content: center;
  }

  .contact-form {
    justify-self: stretch;
    width: 100%;
    max-width: none;
    padding: 18px;
  }

  .contact-form label,
  .mail-note {
    text-align: left;
  }

  .selected-services {
    text-align: left;
  }

  .recap-cards {
    grid-template-columns: 1fr;
  }

  .service-table {
    min-width: 960px;
  }
}
