
.rf-client-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(1.25rem, 6vw, 5rem) max(1.15rem, calc((100% - 72rem) / 2));
  color: #1c2d25;
  background: #f2f3ed;
}
.rf-client-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.45vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -.035em;
  max-width: 16ch;
}
.rf-client-hero p { margin: 0 0 1.05rem; font-size: clamp(1rem, 1.4vw, 1.18rem); max-width: 46ch; }
.rf-client-hero .rf-client-region { color: #455e4c; font-weight: 700; }
.rf-client-hero img { display:block; width:100%; height:auto; aspect-ratio: 4/3; object-fit: cover; border-radius: .9rem; }
.rf-client-actions { display:flex; align-items:center; gap:.75rem 1.15rem; flex-wrap:wrap; }
.rf-client-button, .rf-client-secondary {
  display:inline-flex; align-items:center; justify-content:center; min-height:44px;
  padding:.6rem 1.05rem; border-radius:.55rem; font-weight:700; text-decoration:none;
}
.rf-client-button { background:#24533e; color:#fff; }
.rf-client-button:hover { background:#163f2d; color:#fff; }
.rf-client-secondary { color:#24533e; border:1px solid #67806b; }
.rf-client-catalog header.site-header { font-family:inherit; }
.rf-client-catalog main.rf-client-page { padding-block:clamp(1.25rem,4vw,3rem); }
.rf-client-catalog .rf-client-page h1, .rf-client-catalog .rf-client-page h2 { color:#1c2d25; }
.rf-client-catalog .rf-client-page a.rf-client-button { color:#fff; }
.rf-client-action-panel { max-width: 50rem; }
.rf-roof-rates { max-width:74rem; margin:2.5rem auto; padding:clamp(1rem,3vw,2rem); border-radius:.9rem; background:#f1f4ee; color:#1c2d25; }
.rf-roof-rates h2 { margin:0 0 1rem; color:inherit; }
.rf-roof-rates dl { margin:0 0 1.35rem; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.85rem; }
.rf-roof-rates dl div { padding:1rem; border-radius:.65rem; background:white; }
.rf-roof-rates dt { font-weight:700; }
.rf-roof-rates dd { margin:.5rem 0 0; display:grid; gap:.45rem; }
.rf-roof-rates dd strong { font-size:1.38rem; color:#24533e; white-space:nowrap; }
.rf-roof-rates dd span { line-height:1.5; }
@media (max-width: 47rem) {
  .rf-client-hero { grid-template-columns:1fr; gap:1.2rem; }
  .rf-client-hero h1 { max-width:19ch; }
  .rf-client-hero img { max-height:16rem; }
  .rf-roof-rates dl { grid-template-columns:1fr; }
}


.v21-page .site-header nav > a:not(.nav-contact) { color: #243d48; }
.v21-page .site-header nav > a:not(.nav-contact):hover { color: #4b644e; }
.rf-client-catalog .rf-client-page .filters { margin-top: 1.25rem; }
.rf-client-hero { margin-top: 0; }
@media (max-width: 47rem) {
  .rf-client-hero h1 { font-size: clamp(1.85rem, 7vw, 2.4rem); }
}

/* Home content stays independent of the inherited service and photo cards. */
.rf-home-services { scroll-margin-top: 7rem; }
.rf-home-services .s68-inner { width: min(100% - 2rem, 74rem); margin-inline: auto; }
.rf-home-services .s68-section { padding-block: clamp(1.5rem, 5vw, 4rem); }
.rf-home-services .s68-trust { padding-block: 1.25rem; }
.rf-home-services .s68-quick {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .5rem; margin: 1rem 0 1.4rem;
}
.rf-home-services .s68-quick a {
  display: inline-flex; align-items: center; min-height: 42px;
  padding: .45rem .8rem; border: 1px solid #adbbad; border-radius: .45rem;
  color: #244634; background: #f8faf6; line-height: 1.25; text-decoration: none;
}
.rf-home-services .s68-quick a:hover,
.rf-home-services .s68-quick a:focus-visible { background: #e6eee3; text-decoration: underline; }
.rf-home-services .s68-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
  align-items: start; gap: 1rem;
}
.rf-home-services .s68-card { min-width: 0; overflow: hidden; }
.rf-home-services .s68-card > .media {
  position: static; display: grid; place-items: center;
  width: 100%; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: .65rem; background: #e9eee6;
}
.rf-home-services .s68-card > .media img {
  position: static; display: block; width: 100%; height: 100%;
  max-width: 100%; object-fit: cover; margin: 0;
}
.rf-home-services .s68-card > .s68-card-body {
  position: static; display: grid; align-content: start; gap: .5rem;
  min-width: 0; padding-block: .8rem .25rem; overflow-wrap: anywhere;
}
.rf-home-services .s68-card-body :is(h3,p) { margin: 0; line-height: 1.35; }
.rf-home-services .s68-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .75rem; }
.rf-home-services .s68-real-story img { display: block; width: 100%; height: auto; }
@media (max-width: 47rem) {
  .rf-home-services .s68-grid { grid-template-columns: 1fr; }
  .rf-home-services .s68-inner { width: calc(100% - 2rem); }
}

.rf-home-services { font-family: system-ui, "Segoe UI", sans-serif; }
.rf-home-services h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); line-height: 1.12; letter-spacing: -.025em; }
.rf-home-services .s68-card h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); letter-spacing: -.015em; }
.rf-home-services .s68-card p { line-height: 1.55; }
.rf-home-services .s68-actions .s68-button, .rf-guide-actions .s68-button {
 display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
 padding: .5rem .85rem; border: 1px solid #28543f; border-radius: .5rem;
 color: #fff; background: #28543f; font-weight: 650; text-decoration: none;
}
.rf-home-services .s68-actions .secondary, .rf-guide-actions .secondary { color: #28543f; background: #f5f8f2; }
.rf-home-services a:focus-visible, .rf-socials a:focus-visible { outline: 2px solid #28543f; outline-offset: 3px; }
.rf-home-services #s68-featured .s68-actions { align-items: stretch; }
.rf-socials { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-block: 1rem; }
.rf-socials a { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .35rem .65rem;
 border: 1px solid #aab8ad; border-radius: .6rem; text-decoration: none; color: #243e32; background: #f8faf6; }
.rf-socials span { display: inline-grid; place-items: center; width: 1.55rem; height: 1.55rem; border-radius: .4rem;
 color: white; background: #28543f; font: 700 .72rem system-ui; }
.rf-socials .rf-social-vk span { background: #075ee5; }
.rf-socials .rf-social-tg span { background: #126f9c; }
.rf-socials .rf-social-max span { background: #4b39be; }
.rf-socials .rf-social-dzen span { background: #242424; }
.rf-guide-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-block: .85rem; }
.rf-guide audio { width: min(100%, 33rem); }
#s68-portfolio, #s68-services, .rf-guide, .rf-gallery-anchor { scroll-margin-top: 7rem; }
@media (prefers-reduced-motion: no-preference) {
 .rf-home-services .s68-actions .s68-button, .rf-socials a { transition: box-shadow .16s ease; }
 .rf-home-services .s68-actions .s68-button:hover, .rf-socials a:hover { box-shadow: 0 2px 8px #28543f30; }
}

.rf-socials img { display:block; width:1.55rem; height:1.55rem; object-fit:contain; flex:none; }
