.house-hero { position:relative; min-height:570px; overflow:hidden; background:#e9f3fb; display:flex; align-items:center; }
.house-photo { position:absolute; inset:0; background:url('domprofi-dom.jpg') center/cover no-repeat; }
.house-hero::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,#edf7fff8 0%,#edf7fff0 26%,#eaf5ff9c 47%,transparent 74%); pointer-events:none; }
.hero-copy { position:relative; z-index:1; width:min(650px,59%); padding:55px clamp(25px,5vw,78px); }
.hero-copy h1 { color:#07356d; font-size:clamp(38px,4.5vw,68px); line-height:1.07; letter-spacing:-2px; margin:18px 0; }
.hero-copy h2 { color:#0573bb; font-size:clamp(20px,2vw,29px); margin:0 0 18px; }
.hero-copy p { font-size:clamp(16px,1.5vw,20px); line-height:1.55; }
.hero-copy .actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:25px; }
.hero-copy .btn.light { background:white; color:#064a86; border:2px solid #0865ab; }
.services { padding-top:36px; }
.service-grid a { position:relative; overflow:hidden; min-height:170px; justify-content:flex-end; background-image:url('domprofi-vizual.jpg'); background-repeat:no-repeat; background-size:426% 730%; color:white; border:0; box-shadow:0 7px 17px #052b561c; }
.service-grid a::before { content:""; position:absolute; left:0; right:0; bottom:0; height:50px; background:linear-gradient(90deg,#06366a,#0767af); opacity:.96; }
.service-grid a span { position:relative; z-index:1; padding:0 6px 12px; font-size:16px; text-shadow:0 1px 2px #00254a; }
.service-grid a:nth-child(1) { background-position:1% 64%; }
.service-grid a:nth-child(2) { background-position:34% 64%; }
.service-grid a:nth-child(3) { background-position:67% 64%; }
.service-grid a:nth-child(4) { background-position:99% 64%; }
.service-grid a:nth-child(5) { background-position:1% 82%; }
.service-grid a:nth-child(6) { background-position:34% 82%; }
.service-grid a:nth-child(7) { background-position:67% 82%; }
.service-grid a:nth-child(8) { background-position:99% 82%; }
.service-detail[hidden] { display:none; }
.service-detail { position:relative; max-width:1000px; margin:26px auto 0; padding:30px; background:#fff; border:2px solid #c6e0f4; border-radius:18px; box-shadow:0 12px 30px #05346b16; scroll-margin-top:20px; }
.service-detail h3 { font-size:clamp(25px,3vw,36px); margin:11px 0; color:#073c74; }
.service-detail p { font-size:17px; line-height:1.6; color:#365d7d; }
.detail-close { position:absolute; top:11px; right:16px; background:transparent; border:0; color:#0b5593; font-size:32px; cursor:pointer; }
.detail-actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:23px; }
.detail-actions .btn.light { background:#edf7ff; color:#07529a; }
@media(max-width:620px) {
  .house-hero { min-height:0; flex-direction:column; align-items:stretch; }
  .house-photo { position:relative; height:310px; background-position:55% center; }
  .house-hero::after { display:none; }
  .hero-copy { width:100%; padding:26px 21px 34px; background:#eaf5ff; }
  .hero-copy h1 { font-size:36px; letter-spacing:-1px; margin:12px 0; }
  .hero-copy h2 { font-size:19px; }
  .hero-copy p { font-size:15px; }
  .hero-copy .actions { display:grid; gap:10px; }
  .services { padding:35px 13px; }
  .service-grid { gap:10px; }
  .service-grid a { min-height:140px; font-size:0; }
  .service-grid a span { font-size:12px; padding:0 4px 9px; }
  .service-grid a::before { height:43px; }
  .service-detail { padding:23px 17px; }
  .detail-actions { display:grid; }
  .detail-actions .btn { white-space:normal; text-align:center; }
}
