/* ===== Карточка психолога — чистая и стабильная верстка ===== */

.gsp-card.container{
  max-width:1120px;
  margin: 20px auto 60px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:18px;
  padding:18px;
}

/* Шапка карточки */
.gsp-head{
  display:grid;
  grid-template-columns: 280px 1fr;
  gap:24px;
  align-items:start;
}

.gsp-photo{
  width:280px; height:360px;
  border-radius:16px; overflow:hidden;
  border:1px solid #e5e7eb; background:#f8fafc;
}
.gsp-photo img{ width:100%; height:100%; object-fit:cover; display:block; }
.gsp-photo__ph{ width:100%; height:100%; background:#eef2f7; }

.gsp-title{ font-size:34px; line-height:1.15; margin:6px 0 10px; }

.gsp-meta{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:6px; }
.gsp-badge{
  display:inline-block;
  font-size:14px; line-height:1;
  padding:8px 10px; border-radius:999px;
  background:#eef2ff; color:#333; border:1px solid #dbeafe;
}

.gsp-price{ margin:8px 0 12px; font-weight:600; font-size:16px; }

.gsp-actions{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.gsp-btn{
  display:inline-block; background:#0f172a; color:#fff;
  padding:10px 16px; border-radius:12px; text-decoration:none;
}
.gsp-link{
  display:inline-block; padding:8px 12px; border-radius:10px;
  background:#f3f4f6; color:#0f172a; text-decoration:none; border:1px solid #e5e7eb;
}

/* Форма "Записаться" — без прыжков */
#gspContactWrap{ position:relative; min-height:170px; margin-top:12px; }
#gspContactBox{
  position:absolute; left:0; right:0; top:0;
  opacity:0; pointer-events:none; transform:translateY(-4px);
  transition:opacity .2s ease, transform .2s ease;
  padding:12px; border:1px solid #e5e7eb; border-radius:14px; background:#fff;
}
#gspContactBox.is-open{ opacity:1; pointer-events:auto; transform:none; }

.gsp-form .form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.gsp-form input[type="text"], .gsp-form textarea{
  width:100%; padding:10px; border:1px solid #d1d5db; border-radius:10px;
}
.gsp-form textarea{ min-height:110px; }
.gsp-form .gsp-channels{ margin:10px 0; }
.gsp-form .btn{
  display:inline-block; background:#111827; color:#fff; padding:10px 16px; border-radius:10px; border:0; cursor:pointer;
}

/* Галерея документов */
.gsp-docs{
  display:grid; grid-template-columns:repeat(4, 1fr); gap:10px; margin-top:10px;
}
.gsp-doc{ position:relative; display:block; border:1px solid #e5e7eb; border-radius:10px; overflow:hidden; background:#fff; }
.gsp-doc img{ width:100%; height:180px; object-fit:cover; display:block; }
.gsp-doc .wm{
  position:absolute; right:6px; bottom:6px; font-size:12px; opacity:.6;
  background:#fff; padding:2px 6px; border-radius:6px; border:1px solid #e5e7eb;
}

/* Аккордеон */
.gsp-acc{ margin-top:20px; }
.gsp-acc-item{ border-top:1px solid #e5e7eb; }
.gsp-acc-item:last-child{ border-bottom:1px solid #e5e7eb; }
.gsp-acc-btn{
  width:100%; text-align:left; padding:14px 6px; background:#fff; border:0; font-size:18px; cursor:pointer;
  display:flex; justify-content:space-between; align-items:center;
}
.gsp-acc-panel{ display:none; padding:10px 6px 16px; }
.gsp-acc-item.open .gsp-acc-panel{ display:block; }

/* Модалка просмотра документа */
.gsp-modal{
  position:fixed; inset:0; background:rgba(0,0,0,.65); display:none;
  align-items:center; justify-content:center; padding:24px; z-index:9999;
}
.gsp-modal.open{ display:flex; }
.gsp-modal > div{ background:#fff; border-radius:12px; padding:12px; max-width:90vw; max-height:90vh; }
.gsp-modal img{ max-width:86vw; max-height:76vh; display:block; }

/* Защита от копирования (если включено) */
body.nocopy img{ -webkit-user-drag:none; user-select:none; }

/* Адаптив */
@media (max-width: 1024px){
  .gsp-head{ grid-template-columns: 240px 1fr; }
  .gsp-photo{ width:240px; height:320px; }
  .gsp-docs{ grid-template-columns:repeat(3, 1fr); }
}
@media (max-width: 768px){
  .gsp-head{ grid-template-columns: 1fr; }
  .gsp-photo{ width:100%; height:560px; }
  #gspContactWrap{ min-height:190px; }
  .gsp-docs{ grid-template-columns:repeat(2, 1fr); }
}
@media (max-width: 520px){
  .gsp-photo{ height:600px; }
  .gsp-form .form-grid{ grid-template-columns:1fr; }
  .gsp-docs{ grid-template-columns:1fr; }
}
