
/* RVD77-132 PRO EDITABLE CRM layer. Разработчик: Дремов Алексей. */
.rvd7727-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin:28px 0}
.rvd7727-card{overflow:hidden;border-radius:30px;background:linear-gradient(180deg,rgba(255,255,255,.10),rgba(255,255,255,.04));border:1px solid rgba(242,217,166,.20);box-shadow:0 24px 70px rgba(0,0,0,.38);backdrop-filter:blur(14px)}
.rvd7727-card-img{display:block;height:245px;background-size:cover;background-position:center}
.rvd7727-card-body{padding:22px;display:grid;gap:12px}.rvd7727-kicker{color:#f2d9a6;font-size:12px;text-transform:uppercase;letter-spacing:.1em;font-weight:950}.rvd7727-card h3{margin:0;font-size:25px;line-height:1.08}.rvd7727-card h3 a{color:#fff;text-decoration:none}.rvd7727-card p{margin:0;color:#d8e1ea;line-height:1.65}.rvd7727-meta{display:flex;gap:8px;flex-wrap:wrap}.rvd7727-meta span{padding:7px 10px;border-radius:999px;background:rgba(242,217,166,.12);border:1px solid rgba(242,217,166,.22);color:#f2d9a6;font-size:12px;font-weight:800}.rvd7727-btn,.rvd7727-lead-form button{min-height:46px;padding:0 18px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#e9cf9a 0%,#d8ab63 48%,#b98543 100%);color:#111!important;text-decoration:none;font-weight:950;border:0}.rvd7727-lead-form{display:grid;gap:12px;padding:24px;border-radius:28px;background:rgba(8,12,18,.72);border:1px solid rgba(242,217,166,.22);backdrop-filter:blur(16px)}.rvd7727-lead-form h3{margin:0 0 6px;color:#f2d9a6}.rvd7727-lead-form input,.rvd7727-lead-form textarea{width:100%;border-radius:16px;border:1px solid rgba(242,217,166,.22);background:rgba(255,255,255,.08);color:#f2d9a6;padding:13px 14px}.rvd7727-lead-form input::placeholder,.rvd7727-lead-form textarea::placeholder{color:rgba(242,217,166,.68)}.rvd7727-consent{font-size:13px;color:#f2d9a6;line-height:1.4}.rvd7727-single{width:min(1120px,calc(100% - 24px));margin:42px auto;padding:30px;border-radius:32px;background:rgba(8,12,18,.70);border:1px solid rgba(242,217,166,.22);backdrop-filter:blur(16px)}.rvd7727-single h1{margin-top:0;color:#fff}.rvd7727-single .rvd7727-hero-img{height:420px;border-radius:24px;background-size:cover;background-position:center;margin:0 0 24px}.rvd7727-single-content{color:#e7eef7;line-height:1.75;font-size:17px}@media(max-width:980px){.rvd7727-grid{grid-template-columns:1fr 1fr}}@media(max-width:760px){.rvd7727-grid{grid-template-columns:1fr}.rvd7727-card-img{height:220px}.rvd7727-single{margin:16px auto;padding:18px;border-radius:24px}.rvd7727-single .rvd7727-hero-img{height:260px}.rvd7727-lead-form input,.rvd7727-lead-form textarea,.rvd7727-lead-form h3,.rvd7727-consent{color:#f2d9a6!important;-webkit-text-fill-color:#f2d9a6!important}}



<style id="rvd77-171-diadema-only-restore">
/* rvd77-172-no-old-photo-refs: removed references to deleted old photo files from non-Diadema projects. */
/* RVD77-171: restore photos only for Diadema Club House.
   Other designer projects remain text-only. */
#designerProjectsPage .designer-project-mini-photo{display:none!important;}
#designerProjectsPage .designer-project-mini[data-rvd117-project="0"] .designer-project-mini-photo{display:block!important;}

#designerProjectDetailOverlay .rvd117-project-cover{display:none!important;}
#designerProjectDetailOverlay .rvd117-project-hero{grid-template-columns:1fr!important;}
#designerProjectDetailOverlay .rvd117-project-info{max-width:860px!important;margin:0 auto!important;}

#designerProjectDetailOverlay .rvd117-open-gallery,
#designerProjectDetailOverlay [data-rvd117-open-gallery]{display:none!important;}

#designerProjectDetailOverlay.rvd-project-diadema .rvd117-project-cover{display:block!important;}
#designerProjectDetailOverlay.rvd-project-diadema .rvd117-project-hero{grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr)!important;}
#designerProjectDetailOverlay.rvd-project-diadema .rvd117-project-info{max-width:none!important;margin:0!important;}
#designerProjectDetailOverlay.rvd-project-diadema .rvd117-open-gallery,
#designerProjectDetailOverlay.rvd-project-diadema [data-rvd117-open-gallery]{display:inline-flex!important;}

/* Keep Diadema photos clean: no logo overlays on cover, gallery, or lightbox */
#designerProjectsPage .designer-project-mini.rvd-project-diadema .designer-project-mini-photo::before,
#designerProjectsPage .designer-project-mini[data-rvd117-project="0"] .designer-project-mini-photo::before,
#designerProjectDetailOverlay.rvd-project-diadema .rvd117-project-cover::before,
#rvd117GalleryModal .rvd117-gallery-card::before,
#rvd121GalleryModal .rvd121-photo-card::before,
#rvd117Lightbox .rvd117-lightbox-frame::before,
#rvd121Lightbox .rvd121-lightbox-frame::before,
#rvd117Lightbox .rvd117-lightbox-frame::after,
#rvd121Lightbox .rvd121-lightbox-frame::after{
  content:none!important;
  display:none!important;
}

@media(max-width:920px){
  #designerProjectDetailOverlay.rvd-project-diadema .rvd117-project-hero{
    grid-template-columns:1fr!important;
  }
}
</style>

<script id="rvd77-171-diadema-only-restore-js">
(function(){
  function syncDiademaOnly(){
    document.querySelectorAll('#designerProjectsPage .designer-project-mini').forEach(function(card){
      var isDiadema = card.getAttribute('data-rvd117-project') === '0';
      var photo = card.querySelector('.designer-project-mini-photo');
      if(photo){ photo.style.display = isDiadema ? '' : 'none'; }
    });

    var detail = document.getElementById('designerProjectDetailOverlay');
    if(detail){
      var titleEl = document.getElementById('designerProjectDetailTitle');
      var ttl = (titleEl && titleEl.textContent ? titleEl.textContent : '').toLowerCase();
      var isDiadema = ttl.indexOf('diadema') !== -1 || ttl.indexOf('диадема') !== -1 || detail.classList.contains('rvd-project-diadema');

      var cover = detail.querySelector('.rvd117-project-cover');
      if(cover){ cover.style.display = isDiadema ? '' : 'none'; }

      var hero = detail.querySelector('.rvd117-project-hero');
      if(hero){ hero.style.gridTemplateColumns = isDiadema ? '' : '1fr'; }

      var info = detail.querySelector('.rvd117-project-info');
      if(info){
        info.style.maxWidth = isDiadema ? '' : '860px';
        info.style.margin = isDiadema ? '' : '0 auto';
      }

      detail.querySelectorAll('[data-rvd117-open-gallery], .rvd117-open-gallery').forEach(function(btn){
        btn.style.display = isDiadema ? '' : 'none';
      });
    }
  }

  if(document.readyState === 'loading'){
    document.addEventListener('DOMContentLoaded', syncDiademaOnly);
  } else {
    syncDiademaOnly();
  }

  window.addEventListener('click', function(){ setTimeout(syncDiademaOnly, 30); }, true);
  window.addEventListener('load', syncDiademaOnly);
  new MutationObserver(syncDiademaOnly).observe(document.documentElement, {childList:true, subtree:true});
})();
</script>

