/* Tokens */
:root {
  --mp-bg: #F3F2EB;
  --mp-surface: #FCFBF7;
  --mp-text: #23261F;
  --mp-muted: #5A5E53;
  --mp-accent: #56651E;
  --mp-accent-text: #FCFBF7;
  --mp-plate-bg: #23261F;
  --mp-plate-text: #F3F2EB;
  --mp-line: rgba(90, 94, 83, 0.28);
  --mp-radius-card: 14px;
  --mp-radius-btn: 10px;
  --mp-shadow-soft: 0 1px 2px rgb(35 38 31 / 0.06), 0 12px 32px rgb(35 38 31 / 0.08);
  --mp-shadow-lift: 0 2px 4px rgb(35 38 31 / 0.08), 0 20px 44px rgb(35 38 31 / 0.14);
  --mp-font-head: 'Gill Sans', 'Gill Sans MT', Calibri, 'Segoe UI', sans-serif;
  --mp-font-body: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mp-pad: clamp(16px, 4vw, 40px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--mp-bg);
  color: var(--mp-text);
  font-family: var(--mp-font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--mp-font-head);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  overflow-wrap: break-word;
  hyphens: auto;
}

h1 {
  font-size: clamp(2.4rem, 4.6vw + 0.6rem, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h2 { font-size: clamp(1.8rem, 2.6vw + 0.8rem, 3rem); }
h3 { font-size: clamp(1.2rem, 0.6vw + 1rem, 1.5rem); }

p { margin: 0 0 1em; max-width: 68ch; overflow-wrap: break-word; }

a { color: var(--mp-accent); text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

ul, ol { margin: 0; padding: 0; }

/* Layout */
.mp_wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--mp-pad);
  padding-right: var(--mp-pad);
}

.mp_section {
  padding: clamp(64px, 9vw, 128px) 0;
  position: relative;
}

.mp_section_tint {
  background: var(--mp-surface);
  /* Wavy tinted layer over page background */
  background-image:
    radial-gradient(120% 60px at 50% 0%, var(--mp-surface) 60%, transparent 61%),
    radial-gradient(120% 60px at 50% 100%, var(--mp-surface) 60%, transparent 61%);
}

.mp_cols {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr);
}

.mp_cols_head h2,
.mp_cols_head p { max-width: 42ch; }

/* Skip link */
.mp_skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--mp-plate-bg);
  color: var(--mp-plate-text);
  padding: 12px 20px;
  border-radius: var(--mp-radius-btn);
  z-index: 60;
  text-decoration: none;
}

.mp_skip:focus {
  left: 12px;
  top: 12px;
}

/* Header bar */
.mp_bar {
  position: sticky;
  top: 12px;
  z-index: 50;
  max-width: 1200px;
  width: calc(100% - 2 * var(--mp-pad));
  margin: 12px auto 0;
  padding: 10px 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  background: var(--mp-surface);
  border-radius: 16px;
  box-shadow: var(--mp-shadow-soft);
  border: 1px solid var(--mp-line);
  min-height: 64px;
}

.mp_logo {
  font-family: var(--mp-font-head);
  font-weight: 650;
  font-size: 1.05rem;
  color: var(--mp-text);
  text-decoration: none;
  text-align: center;
  line-height: 1.25;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp_bar_toggle, .mp_panel_toggle {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius-btn);
  background: transparent;
  color: var(--mp-text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.mp_bar_burger {
  width: 20px;
  height: 2px;
  background: var(--mp-text);
  position: relative;
  flex: none;
}

.mp_bar_burger::before,
.mp_bar_burger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--mp-text);
}

.mp_bar_burger::before { top: -6px; }
.mp_bar_burger::after { top: 6px; }

.mp_bar_phone {
  justify-self: end;
  flex-shrink: 0;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0 16px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--mp-radius-btn);
  text-decoration: none;
  color: var(--mp-plate-text);
  background: linear-gradient(135deg, #56651E, #6B7D2A);
  transition: background-position 0.3s ease;
}

.mp_bar_phone:hover {
  background: linear-gradient(135deg, #56651E, #6B7D2A);
  background-position: 100% 0;
  background-size: 200% 200%;
}

/* Off-canvas panel */
.mp_panel {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(84vw, 360px);
  background: var(--mp-plate-bg);
  color: var(--mp-plate-text);
  padding: 88px 32px 32px;
  transform: translateX(-100%);
  transition: transform 0.35s ease;
  z-index: 55;
  overflow-y: auto;
}

.mp_panel.is_open { transform: translateX(0); }

.mp_panel_veil {
  position: fixed;
  inset: 0;
  background: rgb(35 38 31 / 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 54;
}

.mp_panel_veil.is_open {
  opacity: 1;
  pointer-events: auto;
}

.mp_panel_list { list-style: none; display: grid; gap: 8px; }

.mp_panel_link {
  display: inline-block;
  color: var(--mp-plate-text);
  font-size: 1.15rem;
  font-family: var(--mp-font-head);
  text-decoration: none;
  padding: 10px 4px;
  position: relative;
}

/* Menu underline slides in from the left */
.mp_panel_link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  height: 2px;
  width: 100%;
  background: #B9C77E;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.mp_panel_link:hover::after,
.mp_panel_link:focus-visible::after,
.mp_panel_link[aria-current="page"]::after { transform: scaleX(1); }

/* Buttons */
.mp_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: none;
  border-radius: var(--mp-radius-btn);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  color: var(--mp-accent-text);
  background-image: linear-gradient(160deg, #56651E 0%, #6B7D2A 100%);
  background-size: 100% 220%;
  background-position: 0 0;
  box-shadow: 0 10px 24px rgb(86 101 30 / 0.28);
  transition: background-position 0.35s ease, box-shadow 0.2s ease;
}

.mp_btn:hover { background-position: 0 100%; }

.mp_btn:focus-visible {
  outline: 3px solid #A44A1E;
  outline-offset: 3px;
}

.mp_btn:active {
  box-shadow: none;
  transform: none;
}

.mp_btn_ghost {
  background: transparent;
  color: var(--mp-accent);
  border: 1.5px solid var(--mp-accent);
  box-shadow: none;
}

.mp_btn_ghost:hover { background: rgb(86 101 30 / 0.08); }

/* Hero */
.mp_hero { text-align: center; }

.mp_hero h1 {
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

.mp_hero p {
  margin-left: auto;
  margin-right: auto;
}

.mp_hero_lead {
  font-size: clamp(1.05rem, 0.5vw + 0.95rem, 1.3rem);
  color: var(--mp-muted);
  max-width: 60ch;
}

.mp_hero_text { max-width: 56ch; line-height: 1.6; }

.mp_accent {
  color: var(--mp-accent);
  font-weight: 600;
}

.mp_hero .mp_btn { margin-top: 8px; }

/* Photos with mat frame */
.mp_photo {
  margin: 40px 0 0;
  padding: 20px;
  background: var(--mp-surface);
  border: 1px solid var(--mp-line);
  border-radius: 16px;
  box-shadow: var(--mp-shadow-soft);
  max-width: 100%;
  min-width: 0;
}

.mp_photo img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.mp_cols_head .mp_photo { margin: 24px 0 0; }

/* Contrast plate */
.mp_plate {
  background: var(--mp-plate-bg);
  color: var(--mp-plate-text);
  border-radius: var(--mp-radius-card);
  padding: 24px 28px;
  max-width: 68ch;
  line-height: 1.7;
}

.mp_plate a {
  color: #CDD896;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Lists and cards */
.mp_list { list-style: none; display: grid; gap: 0; }

.mp_list_item {
  padding: 20px 0;
  margin-bottom: 0;
  border-bottom: 1px solid var(--mp-line);
  max-width: 68ch;
  line-height: 1.65;
}

.mp_list_item + .mp_list_item { margin-top: 4px; }

.mp_list_item:first-child { border-top: 1px solid var(--mp-line); }

.mp_grid {
  list-style: none;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: 1fr;
  align-items: stretch;
  min-width: 0;
}

.mp_card {
  background: var(--mp-surface);
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius-card);
  padding: 26px 28px;
  max-width: 68ch;
  min-width: 0;
  overflow-wrap: break-word;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mp_section_tint .mp_card { background: var(--mp-bg); }

.mp_card:hover,
.mp_card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--mp-shadow-lift);
}

.mp_card_price { display: flex; flex-direction: column; }

.mp_price_note {
  margin-top: auto;
  font-weight: 600;
  color: var(--mp-accent);
}

/* Filter */
.mp_filter { margin-top: 40px; min-width: 0; }

.mp_filter h3 { margin-bottom: 12px; }

.mp_filter_bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.mp_filter_btn {
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--mp-radius-btn);
  border: 1.5px solid var(--mp-line);
  background: transparent;
  color: var(--mp-text);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.mp_filter_btn:hover { border-color: var(--mp-accent); }

.mp_filter_btn:focus-visible {
  outline: 3px solid #A44A1E;
  outline-offset: 2px;
}

.mp_filter_btn:active { box-shadow: none; }

.mp_filter_btn.is_active {
  background: var(--mp-accent);
  border-color: var(--mp-accent);
  color: var(--mp-accent-text);
}

.mp_card.is_hidden { display: none; }

/* Steps */
.mp_steps {
  list-style: none;
  counter-reset: mp-step;
  display: grid;
  gap: 24px;
}

.mp_step {
  counter-increment: mp-step;
  padding-left: 64px;
  position: relative;
}

.mp_step::before {
  content: counter(mp-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mp-plate-bg);
  color: var(--mp-plate-text);
  font-family: var(--mp-font-head);
  font-weight: 650;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FAQ */
.mp_faq { display: grid; gap: 14px; max-width: 760px; }

.mp_faq_item {
  background: var(--mp-surface);
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius-card);
  padding: 6px 22px;
}

.mp_faq_item summary {
  font-family: var(--mp-font-head);
  font-weight: 650;
  font-size: 1.15rem;
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 36px;
}

.mp_faq_item summary::-webkit-details-marker { display: none; }

.mp_faq_item summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--mp-accent);
  border-bottom: 2px solid var(--mp-accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s ease;
}

.mp_faq_item[open] summary::after { transform: translateY(-30%) rotate(225deg); }

.mp_faq_item p { padding-bottom: 12px; color: var(--mp-muted); }

/* Form */
.mp_form { display: grid; gap: 20px; min-width: 0; }

.mp_field { display: grid; gap: 6px; }

.mp_label { font-weight: 600; font-size: 0.95rem; }

.mp_input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid var(--mp-line);
  border-radius: var(--mp-radius-btn);
  background: var(--mp-surface);
  color: var(--mp-text);
  font-family: inherit;
  font-size: 1rem;
}

.mp_input::placeholder { color: #6E7263; opacity: 1; }

.mp_input:focus-visible {
  outline: 3px solid #A44A1E;
  outline-offset: 2px;
}

.mp_textarea { resize: vertical; min-height: 120px; }

.mp_field_error .mp_input { border-color: #A44A1E; }

.mp_field_error .mp_label { color: #8B3B12; }

.mp_check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--mp-muted);
}

.mp_check input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--mp-accent);
  flex: none;
}

.mp_form_note { font-size: 0.9rem; color: var(--mp-muted); }

.mp_form_send.is_sending {
  opacity: 0.7;
  pointer-events: none;
}

/* Footer */
.mp_footer {
  background: var(--mp-plate-bg);
  color: var(--mp-plate-text);
  padding: clamp(48px, 6vw, 80px) 0 32px;
  margin-top: 0;
  overflow-wrap: break-word;
}

.mp_footer_grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  min-width: 0;
}

.mp_footer_col { min-width: 0; }

.mp_footer_logo {
  color: var(--mp-plate-text);
  text-align: left;
  font-size: 1.1rem;
  display: block;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.mp_footer_owner address {
  font-style: normal;
  margin-top: 16px;
  color: #D8DAD2;
  font-size: 0.95rem;
}

.mp_footer_owner p { max-width: none; }

.mp_footer_heading {
  font-size: 1.05rem;
  margin-bottom: 14px;
  color: var(--mp-plate-text);
}

.mp_footer_links { list-style: none; display: grid; gap: 8px; }

.mp_footer_links a,
.mp_footer_col ul a {
  color: #CDD896;
  text-decoration: none;
}

.mp_footer_links a:hover { text-decoration: underline; }

.mp_footer_col ul { list-style: none; display: grid; gap: 8px; font-size: 0.95rem; }

.mp_footer_col ul span { color: #D8DAD2; margin-right: 4px; }

.mp_footer_bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgb(243 242 235 / 0.2);
}

.mp_footer_copy { color: #D8DAD2; font-size: 0.9rem; margin: 0; }

/* Inner pages */
.mp_page_head {
  padding: clamp(48px, 6vw, 88px) 0 0;
}

.mp_page_head p { color: var(--mp-muted); max-width: 62ch; }

.mp_prose { max-width: 760px; }

.mp_prose h2 { font-size: clamp(1.5rem, 1.6vw + 1rem, 2.2rem); margin-top: 2em; }
.mp_prose h3 { margin-top: 1.6em; }
.mp_prose ul, .mp_prose ol { padding-left: 1.4em; margin-bottom: 1em; display: block; gap: 0; }
.mp_prose li { margin-bottom: 0.5em; }

.mp_prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.95rem;
}

.mp_prose th,
.mp_prose td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--mp-line);
}

.mp_prose th { font-family: var(--mp-font-head); }

/* Contacts block */
.mp_contact_list { list-style: none; display: grid; gap: 16px; }

.mp_contact_list li {
  background: var(--mp-surface);
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius-card);
  padding: 18px 22px;
}

/* Reveal on scroll */
.mp_reveal { opacity: 1; }

html.is_ready .mp_reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.is_ready .mp_reveal.is_revealed {
  opacity: 1;
  transform: none;
}

/* Breakpoints */
@media (min-width: 480px) {
  .mp_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mp_card { max-width: none; }
}

@media (min-width: 640px) {
  .mp_cols { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; }
  .mp_cols_head { position: sticky; top: 96px; align-self: start; }
  .mp_footer_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .mp_grid_pricing { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .mp_filter .mp_grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mp_hero_lead { font-size: 1.3rem; }
  .mp_footer_grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
  .mp_wrap { padding-left: 0; padding-right: 0; }
  .mp_bar { margin-bottom: 16px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html.is_ready .mp_reveal {
    opacity: 1;
    transform: none;
  }
}

/* Mobile rhythm */
@media (max-width: 639px) {
  .mp_section { padding-top: 72px; }
  .mp_filter_bar .mp_filter_btn { flex: 1 0 auto; }
  .mp_bar { gap: 8px; }
  .mp_bar_phone { padding: 0 12px; }
}

/* Pricing rows */
.mp_section_tint { padding-bottom: max(96px, clamp(64px, 9vw, 128px)); }
.mp_grid_pricing .mp_card { min-height: 100%; }

/* Header stacking safety */
.mp_panel_toggle { position: relative; z-index: 2; }
.mp_logo { position: relative; z-index: 1; }

@media (max-width: 479px) {
  .mp_panel_toggle { padding: 0 12px; gap: 8px; }
  .mp_bar_phone { padding: 0 12px; font-size: 0.9rem; }
}
