/* GlobalJS home page — premium visual refresh, existing content preserved */
:root {
  --home-ink: #281c27;
  --home-muted: #756a73;
  --home-plum: #55183f;
  --home-plum-deep: #321027;
  --home-rose: #c84e72;
  --home-rose-dark: #aa365a;
  --home-blush: #f7e9eb;
  --home-cream: #fbf8f4;
  --home-gold: #d6ad68;
  --home-line: #eadfdf;
  --home-white: #fff;
}

body.home-page {
  background: var(--home-cream);
  color: var(--home-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  overflow-x: hidden;
}
body.home-page *, body.home-page *::before, body.home-page *::after { box-sizing: border-box; }
body.home-page .matri-container { max-width: 1280px; padding-left: 28px; padding-right: 28px; }

/* Header — same design language as the registration page */
body.home-page .matri-topbar {
  background: var(--home-plum-deep);
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.82);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}
body.home-page .matri-topbar-inner { gap: 10px; height: 34px; }
body.home-page .matri-topbar a { color: #f3cf91; font-weight: 800; transition: color .18s ease; }
body.home-page .matri-topbar a:hover { color: #fff; }

body.home-page .matri-brand-header {
  background: rgba(255,252,249,.98);
  border-bottom: 1px solid rgba(85,24,63,.1);
  box-shadow: 0 12px 34px rgba(61,25,47,.08);
  color: var(--home-ink);
  position: relative;
  transition: transform .25s ease;
  z-index: 40;
}
body.home-page .matri-nav-wrap { align-items: center; flex-direction: row; gap: 24px; min-height: 92px; padding-bottom: 0; padding-top: 0; }
body.home-page .matri-logo { flex: 0 0 225px !important; }
body.home-page .matri-logo img { height: 58px !important; max-width: 220px !important; object-fit: contain; }
body.home-page .matri-nav { align-items: center; gap: 3px; justify-content: flex-end; }
body.home-page .matri-nav > a,
body.home-page .matri-nav summary {
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: #5d5058;
  font-size: 12px;
  font-weight: 750;
  padding: 10px 10px;
  text-shadow: none;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
body.home-page .matri-nav > a:hover,
body.home-page .matri-nav details[open] > summary,
body.home-page .matri-nav summary:hover { background: var(--home-blush); color: var(--home-plum); transform: none; }
body.home-page .matri-nav > a[href="index.html"] {
  background: linear-gradient(135deg, var(--home-rose), var(--home-rose-dark));
  box-shadow: 0 9px 20px rgba(170,54,90,.22);
  color: #fff;
  padding-left: 16px;
  padding-right: 16px;
}
body.home-page .matri-nav > a[href="index.html"]:hover { color: #fff; transform: translateY(-1px); }
body.home-page .matri-nav > a[href="matchmaker-signup.html"] {
  background: #f7e5c4 !important;
  border: 1px solid #ebcc94 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  color: var(--home-plum) !important;
  font-size: 11px !important;
  margin-left: 4px !important;
  padding: 9px 13px !important;
}
body.home-page .matri-nav > a[href="matchmaker-signup.html"]:hover { background: #f2d7a7 !important; transform: translateY(-1px); }
body.home-page .matri-nav summary::after { color: var(--home-rose); content: " ▾"; font-size: 10px; }
body.home-page .matri-dropdown-menu {
  background: var(--home-plum-deep);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(43,15,34,.24);
  margin-top: 9px;
  min-width: 225px;
  overflow: hidden;
  padding: 7px;
}
body.home-page .matri-dropdown-menu a { border: 0; border-radius: 8px !important; color: rgba(255,255,255,.84) !important; font-size: 13px !important; padding: 11px 12px !important; text-shadow: none !important; }
body.home-page .matri-dropdown-menu a:hover { background: rgba(255,255,255,.1) !important; color: #fff !important; }

/* Page canvas and layout */
body.home-page .matri-page-bg {
  background:
    radial-gradient(circle at 4% 3%, rgba(200,78,114,.08), transparent 25%),
    radial-gradient(circle at 98% 35%, rgba(214,173,104,.08), transparent 22%),
    linear-gradient(180deg, #fffdfb 0%, var(--home-cream) 42%, #f7f1ed 100%);
  padding-bottom: 52px;
}
body.home-page .matri-layout { gap: 26px; grid-template-columns: minmax(0,1fr) 300px; padding-top: 34px; }
body.home-page .matri-content-card,
body.home-page .matri-sidebar-card { border: 0; }
body.home-page .matri-main-col { background: transparent; padding: 0; }

/* Hero */
body.home-page .matri-title-bar {
  background: var(--home-plum);
  border-radius: 24px 24px 0 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px,4vw,52px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.04;
  margin: 0;
  padding: 46px 48px 18px;
  position: relative;
}
body.home-page .matri-title-bar::before {
  color: #efc887;
  content: "SERIOUS RISHTA MATCHMAKING";
  display: block;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .17em;
  margin-bottom: 14px;
}
body.home-page .matri-title-bar::after {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  content: "";
  height: 170px;
  position: absolute;
  right: -45px;
  top: -65px;
  width: 170px;
}
body.home-page .matri-intro-row {
  background:
    radial-gradient(circle at 92% 0%, rgba(214,173,104,.18), transparent 36%),
    linear-gradient(145deg, var(--home-plum) 0%, var(--home-plum-deep) 100%);
  border-radius: 0 0 24px 24px;
  color: #fff;
  gap: 36px;
  grid-template-columns: minmax(0,1fr) 240px;
  margin-bottom: 26px;
  overflow: hidden;
  padding: 8px 48px 42px;
  position: relative;
}
body.home-page .matri-intro-copy p { color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.7; margin: 0 0 12px; max-width: 690px; }
body.home-page .matri-intro-copy strong { color: #fff; }
body.home-page .matri-intro-photo { align-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; display: flex; justify-content: center; min-height: 178px; padding: 16px; }
body.home-page .matri-intro-photo img { filter: drop-shadow(0 16px 24px rgba(0,0,0,.16)); max-height: 155px; max-width: 210px; }

/* Shared section cards */
body.home-page .matri-main-col > .matri-section {
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(85,24,63,.08);
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(68,28,51,.07);
  margin-bottom: 26px;
  padding: 30px;
}
body.home-page .matri-section h1,
body.home-page .matri-section h2,
body.home-page .matri-faq h3 { color: var(--home-plum); font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.02em; }
body.home-page .matri-section h1 { color: var(--home-plum) !important; font-family: Georgia, "Times New Roman", serif !important; font-size: 30px !important; font-weight: 500 !important; margin: 0 0 24px !important; text-decoration: none; }
body.home-page .matri-section h1::before,
body.home-page .matri-section > h2::before { background: var(--home-rose); border-radius: 10px; content: ""; display: inline-block; height: 7px; margin: 0 10px 4px 0; width: 7px; }

/* Quick-search cards */
body.home-page .matri-category-grid { display: grid !important; gap: 16px !important; grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
body.home-page .matri-category-card {
  background: linear-gradient(155deg,#fff 0%,#fcf7f4 100%) !important;
  border: 1px solid var(--home-line) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  height: auto !important;
  min-height: 190px !important;
  overflow: hidden;
  padding: 22px 14px !important;
  position: relative;
  text-decoration: none !important;
}
body.home-page .matri-category-card::after { background: var(--home-blush); border-radius: 50%; bottom: -44px; content: ""; height: 100px; position: absolute; right: -38px; transition: transform .25s ease; width: 100px; }
body.home-page .matri-category-card:hover { border-color: rgba(200,78,114,.42) !important; box-shadow: 0 16px 30px rgba(85,24,63,.1) !important; transform: translateY(-5px) !important; }
body.home-page .matri-category-card:hover::after { transform: scale(1.2); }
body.home-page .matri-category-card strong { color: var(--home-plum) !important; font-family: Georgia, "Times New Roman", serif !important; font-size: 20px !important; font-weight: 500 !important; margin-bottom: 14px !important; text-decoration: none !important; }
body.home-page .matri-category-card img { height: 105px !important; margin: 0 auto !important; object-fit: contain !important; position: relative; width: auto !important; z-index: 1; }
body.home-page .matri-quick-filter-row { gap: 10px; margin-top: 18px; }
body.home-page .matri-quick-filter-row a { background: var(--home-blush); border: 1px solid #e9ccd4; border-radius: 10px; color: var(--home-plum); font-size: 11px; font-weight: 800; min-height: 42px; padding: 11px 12px; text-align: center; text-decoration: none; }
body.home-page .matri-quick-filter-row a:hover { background: var(--home-rose); border-color: var(--home-rose); color: #fff; }

/* Advanced search */
body.home-page .matri-search-panel {
  background:
    radial-gradient(circle at 96% 5%, rgba(214,173,104,.2), transparent 28%),
    linear-gradient(145deg,var(--home-plum) 0%,var(--home-plum-deep) 100%) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: 0 18px 45px rgba(50,16,39,.16) !important;
  isolation: isolate;
  overflow: visible;
  padding: 34px !important;
  position: relative;
  z-index: 10;
}
body.home-page .matri-search-panel h2 { color: #fff; font-size: 29px; line-height: 1.2; margin: 0 0 24px; }
body.home-page .matri-search-panel h2::before { background: #efc887; }
body.home-page .matri-advanced-form { align-items: end; gap: 16px; grid-template-columns: repeat(5,minmax(0,1fr)); }
body.home-page .matri-advanced-form label { color: rgba(255,255,255,.78); font-size: 11px; font-weight: 750; gap: 9px; letter-spacing: .015em; min-width: 0; }
body.home-page .matri-advanced-form select { appearance: none; background-color: rgba(255,255,255,.96); border: 1px solid rgba(255,255,255,.2); border-radius: 10px; color: var(--home-ink); cursor: pointer; font-family: inherit; font-size: 12px; font-weight: 650; height: 46px; padding: 0 12px; }
body.home-page .matri-advanced-form select:focus { border-color: #efc887; box-shadow: 0 0 0 3px rgba(239,200,135,.14); outline: none; }
body.home-page .matri-advanced-form > button[type="submit"] { background: linear-gradient(135deg,var(--home-rose),var(--home-rose-dark)); border-radius: 11px; box-shadow: 0 10px 22px rgba(0,0,0,.15); font-family: inherit; font-size: 12px; font-weight: 800; height: 48px; transition: transform .18s ease, box-shadow .18s ease; }
body.home-page .matri-advanced-form > button[type="submit"]:hover { box-shadow: 0 14px 28px rgba(0,0,0,.2); transform: translateY(-2px); }

/* Compact custom selects: keep dropdown controls separate from the submit button. */
body.home-page .matri-advanced-form .matri-custom-select { min-width: 0; position: relative; width: 100%; z-index: 2; }
body.home-page .matri-advanced-form .matri-custom-select.open { z-index: 100; }
body.home-page .matri-advanced-form .matri-custom-select-trigger {
  align-items: center;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 11px;
  box-shadow: 0 7px 18px rgba(24,5,18,.12);
  color: var(--home-ink);
  display: flex;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 720;
  height: 48px;
  justify-content: space-between;
  line-height: 1.2;
  min-width: 0;
  padding: 0 14px;
  text-align: left;
  transform: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  width: 100%;
}
body.home-page .matri-advanced-form .matri-custom-select-trigger > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.home-page .matri-advanced-form .matri-custom-select-trigger:hover { background: #fff; border-color: rgba(239,200,135,.86); box-shadow: 0 9px 22px rgba(24,5,18,.16); transform: none; }
body.home-page .matri-advanced-form .matri-custom-select-trigger:focus-visible,
body.home-page .matri-advanced-form .matri-custom-select.open .matri-custom-select-trigger { border-color: #efc887; box-shadow: 0 0 0 3px rgba(239,200,135,.18), 0 9px 22px rgba(24,5,18,.16); outline: none; }
body.home-page .matri-advanced-form .matri-custom-select-chevron {
  border-bottom: 2px solid var(--home-plum);
  border-right: 2px solid var(--home-plum);
  flex: 0 0 auto;
  height: 8px;
  margin: -4px 2px 0 12px;
  transform: rotate(45deg);
  transition: transform .18s ease, margin .18s ease;
  width: 8px;
}
body.home-page .matri-advanced-form .matri-custom-select.open .matri-custom-select-chevron { margin-bottom: -5px; margin-top: 0; transform: rotate(225deg); }
body.home-page .matri-advanced-form .matri-custom-select-menu {
  background: #fff;
  border: 1px solid #eadcdf;
  border-radius: 12px;
  box-shadow: 0 18px 38px rgba(38,10,29,.24);
  left: 0;
  margin: 0;
  max-height: 240px;
  min-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 6px;
  right: auto;
  top: calc(100% + 8px);
}
body.home-page .matri-advanced-form .matri-custom-select-option {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  color: #453740;
  display: flex;
  font-family: inherit;
  font-size: 12px;
  font-weight: 650;
  height: auto;
  justify-content: space-between;
  line-height: 1.25;
  margin: 0;
  min-height: 38px;
  padding: 9px 10px;
  text-align: left;
  transform: none;
  transition: background .15s ease, color .15s ease;
  width: 100%;
}
body.home-page .matri-advanced-form .matri-custom-select-option + .matri-custom-select-option { margin-top: 2px; }
body.home-page .matri-advanced-form .matri-custom-select-option:hover { background: var(--home-blush); box-shadow: none; color: var(--home-plum); transform: none; }
body.home-page .matri-advanced-form .matri-custom-select-option.selected { background: #f7e8ec; color: var(--home-plum); font-weight: 800; }
body.home-page .matri-advanced-form .matri-custom-select-option.selected::after { color: var(--home-rose-dark); content: "✓"; font-size: 12px; margin-left: 10px; }

/* Daily proposals */
body.home-page .matri-daily-heading { font-size: 30px !important; margin-bottom: 22px !important; }
body.home-page .matri-proposal-list { gap: 14px; }
body.home-page .matri-proposal-card { background: #fffdfb; border: 1px solid var(--home-line); border-radius: 15px; gap: 18px; grid-template-columns: 78px minmax(0,1fr); padding: 16px; position: relative; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
body.home-page .matri-proposal-card::before { background: var(--home-rose); border-radius: 0 5px 5px 0; content: ""; height: 42px; left: -1px; position: absolute; top: 20px; width: 3px; }
body.home-page .matri-proposal-card:hover { border-color: rgba(200,78,114,.32); box-shadow: 0 13px 28px rgba(85,24,63,.08); transform: translateY(-2px); }
body.home-page .matri-photo-placeholder { align-items: center; background: var(--home-blush); border: 1px solid #ecd7dc; border-radius: 13px; height: 92px; padding: 8px; width: 72px; }
body.home-page .matri-photo-placeholder img { max-height: 76px; object-fit: contain; }
body.home-page .matri-proposal-meta { color: var(--home-rose-dark); font-size: 9px; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
body.home-page .matri-proposal-card h3 { color: var(--home-plum); font-family: Georgia, "Times New Roman", serif; font-size: 17px; font-weight: 500; line-height: 1.3; margin: 5px 0 12px; }
body.home-page .matri-profile-grid { color: var(--home-muted); font-size: 11px; gap: 7px 24px; }
body.home-page .matri-profile-grid b { color: var(--home-ink); }
body.home-page .matri-verified { color: #34815a; }
body.home-page .matri-progress { color: var(--home-rose-dark); }
body.home-page .matri-details-btn { background: var(--home-plum); border-radius: 999px; font-size: 9px; letter-spacing: .04em; margin-top: 12px; padding: 7px 13px; text-decoration: none; }
body.home-page .matri-details-btn:hover { background: var(--home-rose-dark); }
body.home-page .matri-pagination { gap: 7px; justify-content: center; margin-top: 25px; }
body.home-page .matri-pagination a,
body.home-page .matri-pagination strong { align-items: center; border: 1px solid var(--home-line); border-radius: 8px; color: var(--home-plum); display: inline-flex; font-size: 11px; justify-content: center; min-height: 34px; padding: 6px 11px; }
body.home-page .matri-pagination strong { background: var(--home-plum); border-color: var(--home-plum); color: #fff; }

/* FAQ */
body.home-page .matri-faq { padding-top: 30px !important; }
body.home-page .matri-faq h2 { color: var(--home-plum); font-size: 30px; font-weight: 500; margin-bottom: 20px; }
body.home-page .matri-faq h3 { background: #fcf7f4; border-left: 3px solid var(--home-rose); border-radius: 0 10px 10px 0; font-size: 16px; margin: 12px 0 0; padding: 13px 15px 7px; }
body.home-page .matri-faq p { background: #fcf7f4; border-left: 3px solid var(--home-rose); border-radius: 0 0 10px 0; color: var(--home-muted); font-size: 12px; line-height: 1.65; margin: 0 0 12px; padding: 0 15px 13px; }

/* Featured proposal sidebar */
body.home-page .matri-sidebar { position: sticky; top: 20px; }
body.home-page .matri-sidebar-card { background: rgba(255,255,255,.95); border: 1px solid rgba(85,24,63,.08); border-radius: 20px; box-shadow: 0 18px 48px rgba(68,28,51,.08); overflow: hidden; padding: 0 18px 10px; }
body.home-page .matri-sidebar-card > h2 { background: var(--home-plum); color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 500; letter-spacing: -.02em; margin: 0 -18px 8px; padding: 23px 20px; }
body.home-page .matri-featured-card { border-bottom: 1px solid var(--home-line); padding: 20px 4px 22px; }
body.home-page .matri-new-ribbon { background: var(--home-rose); border-radius: 999px; font-size: 8px; letter-spacing: .08em; padding: 5px 8px; transform: none; }
body.home-page .matri-featured-card h3 { color: var(--home-plum); font-family: Georgia, "Times New Roman", serif; font-size: 16px; font-weight: 600; margin: 10px 0 7px; text-align: left; text-transform: none; }
body.home-page .matri-featured-card p { color: var(--home-muted); font-size: 11px; font-weight: 550; line-height: 1.55; margin-bottom: 12px; }
body.home-page .matri-featured-card ul { background: #fcf7f4; border-radius: 10px; color: var(--home-muted); display: grid; font-size: 10px; gap: 5px; margin-bottom: 12px; padding: 10px 12px; }
body.home-page .matri-featured-card ul b { color: var(--home-ink); }
body.home-page .matri-featured-card a { color: var(--home-rose-dark); font-size: 10px; font-weight: 800; text-decoration: none; }
body.home-page .matri-featured-card a::after { content: " →"; }

/* Footer — matched to registration */
body.home-page .matri-footer {
  background: radial-gradient(circle at 8% 0%, rgba(200,78,114,.22), transparent 30%), linear-gradient(145deg,#42132f 0%,var(--home-plum-deep) 62%,#260b1d 100%);
  border-top: 4px solid var(--home-gold);
  color: #fff;
  padding: 48px 0 0;
}
body.home-page .matri-footer-grid { gap: 54px; grid-template-columns: 1.4fr 1.15fr .7fr .9fr; }
body.home-page .matri-footer h4 { border-bottom: 1px solid rgba(255,255,255,.12); color: #f3cf91; font-size: 11px; letter-spacing: .11em; margin-bottom: 16px; padding-bottom: 12px; }
body.home-page .matri-footer p,
body.home-page .matri-footer a { color: rgba(255,255,255,.66); font-size: 11px; font-weight: 600; line-height: 1.65; margin-bottom: 8px; transition: color .18s ease, transform .18s ease; }
body.home-page .matri-footer a:hover { color: #fff; transform: translateX(2px); }
body.home-page .matri-social { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 8px 18px rgba(0,0,0,.14); color: #f3cf91; font-size: 18px; height: 38px; width: 38px; }
body.home-page .matri-footer-bottom { background: rgba(0,0,0,.16); border-top: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.46); font-size: 10px; margin-top: 42px; min-height: 52px; padding: 19px 24px; }

@media (max-width: 1120px) {
  body.home-page .matri-nav-wrap { gap: 15px; }
  body.home-page .matri-logo { flex-basis: 195px !important; }
  body.home-page .matri-logo img { max-width: 190px !important; }
  body.home-page .matri-nav > a,
  body.home-page .matri-nav summary { font-size: 11px; padding: 8px 7px; }
  body.home-page .matri-nav > a[href="matchmaker-signup.html"] { font-size: 10px !important; padding: 8px 9px !important; }
}

@media (max-width: 1050px) {
  body.home-page .matri-nav-wrap { align-items: center; flex-direction: row; min-height: 110px; padding-bottom: 10px; padding-top: 10px; }
  body.home-page .matri-layout { grid-template-columns: 1fr; }
  body.home-page .matri-main-col { order: 1; }
  body.home-page .matri-sidebar { order: 2; position: static; }
  body.home-page .matri-sidebar-card { display: grid; gap: 0 18px; grid-template-columns: repeat(2,minmax(0,1fr)); padding: 0 18px 10px; }
  body.home-page .matri-sidebar-card > h2 { grid-column: 1 / -1; }
  body.home-page .matri-featured-card:nth-of-type(3) { border-bottom: 0; }
}

@media (max-width: 840px) {
  body.home-page .matri-nav-wrap { align-items: center; flex-direction: column; gap: 13px; min-height: auto; padding-bottom: 16px; padding-top: 15px; }
  body.home-page .matri-logo { flex: 0 0 auto !important; }
  body.home-page .matri-logo img { height: 54px !important; max-width: 205px !important; }
  body.home-page .matri-nav { display: grid; gap: 7px; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; }
  body.home-page .matri-nav > a,
  body.home-page .matri-nav summary { background: rgba(85,24,63,.045); border: 1px solid rgba(85,24,63,.08); border-radius: 9px; color: var(--home-plum); display: block; font-size: 12px !important; padding: 10px 8px !important; text-align: center; }
  body.home-page .matri-nav > a[href="index.html"] { border-color: transparent; color: #fff; }
  body.home-page .matri-nav > a[href="matchmaker-signup.html"] { margin-left: 0 !important; }
  body.home-page .matri-dropdown-menu,
  body.home-page .matri-dropdown-right .matri-dropdown-menu { border-radius: 9px; left: 0; margin: 7px 0 0; min-width: 100%; padding: 6px; position: static; right: auto; }
  body.home-page .matri-dropdown-menu a { text-align: left; }
  body.home-page .matri-intro-row { grid-template-columns: minmax(0,1fr) 200px; }
  body.home-page .matri-advanced-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.home-page .matri-advanced-form button { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body.home-page .matri-container { padding-left: 14px; padding-right: 14px; }
  body.home-page .matri-topbar-inner { height: 32px; }
  body.home-page .matri-page-bg { padding-bottom: 34px; }
  body.home-page .matri-layout { padding-top: 18px; }
  body.home-page .matri-title-bar { border-radius: 18px 18px 0 0; font-size: 35px; padding: 34px 24px 15px; }
  body.home-page .matri-intro-row { border-radius: 0 0 18px 18px; gap: 22px; grid-template-columns: 1fr; padding: 5px 24px 28px; }
  body.home-page .matri-intro-copy p { font-size: 12px; }
  body.home-page .matri-intro-photo { min-height: 140px; }
  body.home-page .matri-intro-photo img { max-height: 125px; }
  body.home-page .matri-main-col > .matri-section { border-radius: 16px; padding: 22px 18px; }
  body.home-page .matri-section h1 { font-size: 26px !important; }
  body.home-page .matri-category-grid { gap: 12px !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  body.home-page .matri-category-card { min-height: 165px !important; padding: 18px 10px !important; }
  body.home-page .matri-category-card strong { font-size: 17px !important; }
  body.home-page .matri-category-card img { height: 88px !important; max-width: 100% !important; }
  body.home-page .matri-search-panel h2 { font-size: 25px; }
  body.home-page .matri-advanced-form { grid-template-columns: 1fr; }
  body.home-page .matri-advanced-form button { grid-column: auto; }
  body.home-page .matri-proposal-card { gap: 12px; grid-template-columns: 62px minmax(0,1fr); padding: 13px 12px; }
  body.home-page .matri-photo-placeholder { height: 78px; width: 58px; }
  body.home-page .matri-proposal-card h3 { font-size: 15px; }
  body.home-page .matri-profile-grid { gap: 6px 10px; grid-template-columns: 1fr; }
  body.home-page .matri-pagination { flex-wrap: wrap; }
  body.home-page .matri-sidebar-card { display: block; }
  body.home-page .matri-featured-card:nth-of-type(3) { border-bottom: 1px solid var(--home-line); }
  body.home-page .matri-footer { padding-top: 38px; }
  body.home-page .matri-footer-grid { gap: 30px; grid-template-columns: 1fr; }
  body.home-page .matri-footer-bottom { margin-top: 30px; padding: 16px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  body.home-page *, body.home-page *::before, body.home-page *::after { scroll-behavior: auto !important; transition: none !important; }
}
