:root {
  --rent-brand: var(--brand, #2e7d32);
  --rent-text: #0b0b0b;
  --rent-bg: #ffffff;
  --rent-overlay: rgba(0,0,0,.6);
}

/* Слой-затемнение */
.rent-modal__overlay { 
  position: fixed; inset: 0; 
  background: var(--rent-overlay);
  display:none; opacity:0; 
  transition: opacity .25s ease;
  z-index: 9998;
}
.rent-modal__overlay._show{display:block}
.rent-modal__overlay._visible{opacity:1}

/* Обертка модалки */
.rent-modal { 
  position: fixed; inset: 0; 
  display: grid; place-items: center; 
  pointer-events: none;
  z-index: 9999; 
}
.rent-modal._show{ pointer-events: auto; }

/* Карточка модалки */
.rent-modal__card{
  position: relative;
  z-index: 9999;
  width: min(560px, calc(100vw - 32px));
  background: var(--rent-bg);
  color: var(--rent-text);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  border: 2px solid color-mix(in srgb, var(--rent-brand) 30%, transparent);
  transform: translateY(8px) scale(.98);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
  overflow: hidden;
}
.rent-modal._visible .rent-modal__card{ 
  opacity:1; transform: translateY(0) scale(1);
}

/* Заголовок */
.rent-modal__head{
  display:flex; align-items:center; gap:12px;
  padding: 18px 20px; 
  background: color-mix(in srgb, var(--rent-brand) 8%, #fff);
  border-bottom: 1px solid color-mix(in srgb, var(--rent-brand) 20%, #e9ecef);
}
.rent-modal__badge{
  display:inline-flex; align-items:center; justify-content:center;
  width:32px; height:32px; border-radius:8px;
  background: color-mix(in srgb, var(--rent-brand) 16%, #fff);
  border:1px solid color-mix(in srgb, var(--rent-brand) 24%, #fff);
  font-weight:700; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.rent-modal__title{
  margin:0; font-size:18px; line-height:1.3; font-weight:800;
}

/* Контент */
.rent-modal__body{ padding: 18px 20px 8px; font-size:16px; line-height:1.6; }
.rent-modal__body p{ margin: 0 0 10px; }
.rent-modal__email{
  display:inline-block; margin-top:8px; font-weight:700;
  color: var(--rent-brand); text-decoration: none; border-bottom: 1px dashed currentColor;
}

/* Подвал */
.rent-modal__footer{ padding: 0 20px 20px; display:flex; gap:12px; flex-wrap:wrap; }
.rent-modal__btn{
  appearance:none; border:none; cursor:pointer; 
  padding:12px 16px; border-radius:12px; font-weight:700; 
  background: var(--rent-brand); color:#fff;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--rent-brand) 28%, transparent);
}
.rent-modal__btn:hover{ filter:saturate(1.1) brightness(1.02) }
.rent-modal__btn._outline{
  background:#fff; color: var(--rent-brand); 
  border:2px solid color-mix(in srgb, var(--rent-brand) 40%, #fff);
}

/* Кнопка закрытия */
.rent-modal__close{
  position:absolute; top:10px; right:10px; 
  width:36px; height:36px; border-radius:10px; 
  border:1px solid #e8e8e8; background:#fff; color:#333; 
  display:grid; place-items:center; cursor:pointer;
}
.rent-modal__close:hover{ background:#f6f6f6 }

/* Мобильные */
@media (max-width: 420px){
  .rent-modal__title{ font-size:16px }
  .rent-modal__body{ font-size:15px }
}

/* Блокировка прокрутки */
body._rent-lock{ overflow:hidden; }
