:root {
  --bg-top: #f0e7d8;
  --bg-bottom: #f6f3ec;
  --ink: #1f2430;
  --muted: #5c6474;
  --panel: rgba(255, 252, 245, 0.86);
  --panel-strong: #1f2430;
  --line: rgba(31, 36, 48, 0.12);
  --accent: #b24c2e;
  --accent-deep: #7f321d;
  --shadow: 0 24px 60px rgba(51, 39, 24, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(178, 76, 46, 0.16), transparent 32%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

body.modal-open {
  overflow: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  filter: blur(6px);
}

body::before {
  top: -60px;
  right: -80px;
  width: 280px;
  height: 280px;
  background: rgba(178, 76, 46, 0.14);
}

body::after {
  bottom: -120px;
  left: -100px;
  width: 360px;
  height: 360px;
  background: rgba(45, 85, 77, 0.12);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.hero {
  padding: 24px 0 40px;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--accent-deep);
}

h1 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

h1 br {
  display: block;
  content: "";
  margin-top: 0.12em;
}

.hero-copy {
  margin: 22px 0 0;
  max-width: 620px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}

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

.service-card {
  min-height: 320px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.service-card-primary {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(145deg, rgba(255, 248, 238, 0.92), rgba(255, 255, 255, 0.72));
}

.service-card-primary:hover {
  transform: translateY(-4px);
  border-color: rgba(178, 76, 46, 0.34);
  box-shadow: 0 28px 68px rgba(51, 39, 24, 0.2);
}

.service-card-muted {
  background: rgba(255, 255, 255, 0.5);
}

.service-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 56px;
}

.service-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(178, 76, 46, 0.12);
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.service-badge-muted {
  background: rgba(31, 36, 48, 0.08);
  color: var(--muted);
}

.service-arrow {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
}

.service-card h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: -0.05em;
}

.service-title-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: nowrap;
  line-height: 1;
}

.service-subtitle {
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: -0.02em;
  white-space: nowrap;
  line-height: 1;
}

.service-card p {
  margin: 0;
  max-width: 46ch;
  line-height: 1.7;
  color: var(--muted);
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.contact-copy {
  max-width: 620px;
}

.contact-eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--accent-deep);
}

.contact-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
  letter-spacing: -0.04em;
}

.contact-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.contact-button {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 15px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 18px 36px rgba(127, 50, 29, 0.22);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.contact-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(127, 50, 29, 0.28);
}

.contact-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-left: auto;
}

.contact-button-secondary {
  background: rgba(255, 255, 255, 0.88);
  color: var(--accent-deep);
  border: 1px solid rgba(127, 50, 29, 0.18);
  box-shadow: none;
}

.contact-button-secondary:hover {
  box-shadow: 0 16px 28px rgba(127, 50, 29, 0.14);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(21, 24, 34, 0.46);
  backdrop-filter: blur(10px);
}

.modal-backdrop.hidden {
  display: none;
}

.modal-panel {
  width: min(100%, 620px);
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 252, 245, 0.98);
  border: 1px solid var(--line);
  box-shadow: 0 32px 80px rgba(31, 36, 48, 0.24);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.modal-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  letter-spacing: -0.04em;
}

.modal-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(31, 36, 48, 0.08);
  color: var(--ink);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-form {
  display: grid;
  gap: 14px;
}

.modal-field {
  display: grid;
  gap: 8px;
}

.modal-field span {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
}

.modal-field input,
.modal-field select,
.modal-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(31, 36, 48, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font: inherit;
}

.modal-field textarea {
  resize: vertical;
  min-height: 132px;
}

.modal-field input:focus,
.modal-field select:focus,
.modal-field textarea:focus {
  outline: 2px solid rgba(178, 76, 46, 0.22);
  border-color: rgba(178, 76, 46, 0.34);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 6px;
}

.modal-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.modal-status.hidden {
  display: none;
}

.modal-status.is-error {
  background: rgba(191, 53, 72, 0.1);
  color: #a32842;
}

.modal-status.is-success {
  background: rgba(49, 129, 83, 0.12);
  color: #23603a;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 28px;
  }

  .hero {
    padding-bottom: 28px;
  }

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

  .service-card {
    min-height: 220px;
    padding: 22px;
  }

  .service-card-head {
    margin-bottom: 40px;
  }

  .contact-panel {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
  }

  .contact-button {
    width: 100%;
  }

  .contact-actions {
    width: 100%;
    justify-content: stretch;
  }

  .modal-panel {
    padding: 22px;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .service-subtitle {
    font-size: 0.95rem;
    white-space: normal;
  }

  .service-title-row {
    align-items: baseline;
    flex-wrap: wrap;
  }
}
