.myresa-home-sections { margin-block-start: 24px; }
.myresa-home-support { margin-block-start: 0; }
.myresa-home-gallery h2, .myresa-trust h2 { margin: 0; font-size: 1.05rem; line-height: 1.25; }
.myresa-home-gallery h2 { margin-block-end: 9px; color: #fff; text-shadow: 0 1px 2px #123f33, 0 0 6px #123f33; }
.myresa-gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 43%;
  gap: 9px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: #4e796a transparent;
  padding-block-end: 4px;
}
.myresa-gallery-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 13px;
  background: linear-gradient(145deg, #668d79, #174237);
  color: #fff;
  text-decoration: none;
  scroll-snap-align: start;
}
.myresa-gallery-card img, .myresa-gallery-card::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.myresa-gallery-card img { object-fit: cover; }
.myresa-gallery-card::after { content: ""; background: linear-gradient(transparent 25%, rgba(8, 22, 18, .88)); }
.myresa-gallery-card:focus-visible { outline: 2px solid #fff; outline-offset: -5px; }
.myresa-gallery-label {
  position: absolute;
  z-index: 1;
  inset-inline: 10px;
  inset-block-end: 9px;
  display: grid;
  gap: 2px;
  line-height: 1.15;
}
.myresa-gallery-label strong { font-size: clamp(.83rem, 2.9vw, 1.1rem); }
.myresa-gallery-label small { font-size: .72rem; color: #f3f6ef; }
.myresa-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 13px 28px;
  margin-block-start: 13px;
  padding: 13px 15px;
  border-radius: 15px;
  background: #103f35;
  color: #f4fbf5;
}
.myresa-trust-main { display: flex; align-items: flex-start; gap: 9px; }
.myresa-trust-shield { flex: none; color: #9cd0b7; }
.myresa-trust p { margin: 5px 0 0; font-size: .8rem; line-height: 1.4; }
.myresa-trust-operator { display: flex; flex-wrap: wrap; gap: 0 10px; margin-block-start: 4px; color: #c2e2d0; font-size: .73rem; text-underline-offset: 2px; }
.myresa-trust-payments p { margin: 0 0 5px; }
.myresa-payment-marks { display: flex; flex-wrap: wrap; gap: 5px; }
.myresa-payment-marks img { display: block; box-sizing: content-box; padding: 2px 5px; border-radius: 4px; background: #fff; object-fit: contain; }
.myresa-home-sections .myresa-home-install { width: 100% !important; max-width: none !important; margin: 10px 0 0 !important; padding: 8px 13px; border-radius: 13px; box-shadow: none; }
.myresa-home-install .myresa-home-tip-title { display: inline; margin: 0 7px 0 0; font-size: .8rem; }
.myresa-home-install .myresa-home-tip-details { display: inline; }
@media (min-width: 701px) {
  .myresa-gallery-track { grid-auto-columns: minmax(0, 1fr); grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; overflow: visible; }
  .myresa-gallery-card { aspect-ratio: 2 / 1; }
  .myresa-gallery-label { inset-inline: 14px; inset-block-end: 12px; }
  .myresa-trust { padding: 15px 20px; }
}
.myresa-gallery-label strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.myresa-gallery-label small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Phase 3A visual adaptation: consistent local SVGs and sentence-safe mobile trust layout. */
.v3-service .myresa-service-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 24px; height: 24px; }
.myresa-service-icon svg { display: block; width: 24px; height: 24px; }
@media (max-width: 700px) {
  .myresa-trust-main { width: 100%; min-width: 0; }
  .myresa-trust-main > div { min-width: 0; }
  .myresa-trust-main p > span { display: block; }
  .myresa-trust-operator { flex-direction: column; gap: 0; }
}
