/* ── Cases grid ── */
.ce-body {
  padding: 72px 5% 96px;
  background: var(--bg2);
}
.ce-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  max-width: 1140px;
  margin: 0 auto;
}

/* ── Case card ── */
.ce-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .3s, transform .3s;
  position: relative;
}
.ce-card::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 0; height: 3px;
  background: linear-gradient(90deg, var(--g), var(--o));
  transition: width .4s ease;
  border-radius: 14px 14px 0 0;
}
.ce-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,.09); transform: translateY(-4px); }
.ce-card:hover::before { width: 100%; }

.ce-card-header {
  padding: 1.8rem 1.8rem 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.ce-card-ico {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--g3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ce-card-ico::before {
  font-size: 1.4rem;
  color: var(--g2);
  margin: 0 !important;
}
.ce-card-ico.or { background: #fff3e0; }
.ce-card-ico.or::before { color: var(--o); }
.ce-card-ico.bk { background: #f0f0f0; }

.ce-card-meta { flex: 1; }
.ce-card-tag {
  display: inline-block;
  background: var(--g3);
  color: var(--g2);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .2rem .65rem;
  border-radius: 20px;
  margin-bottom: .5rem;
}
.ce-card-tag.or { background: #fff3e0; color: var(--o); }
.ce-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bk);
  line-height: 1.3;
}

.ce-card-body { padding: 0 1.8rem 1.5rem; flex: 1; display: flex; flex-direction: column; gap: 1rem; }

.ce-card-desc {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.7;
}

.ce-card-results {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.ce-result-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .83rem;
  color: var(--txt);
}
.ce-result-item::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: var(--g3);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13 4L6.5 11 3 7.5' stroke='%237BBF3E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
}

.ce-card-footer {
  padding: 1rem 1.8rem 1.5rem;
  border-top: 1px solid var(--border);
}
.ce-ver-mas {
  background: none;
  border: 1.5px solid var(--g2);
  color: var(--g2);
  font-size: .82rem;
  font-weight: 600;
  font-family: var(--f);
  padding: .45rem 1.1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.ce-ver-mas:hover { background: var(--g2); color: #fff; }

/* ── Testimonial strip ── */
.ce-testimonial {
  background: var(--bk);
  padding: 72px 5%;
  position: relative;
  overflow: hidden;
}
.ce-testimonial::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 100% at 80% 50%, rgba(123,191,62,.1) 0%, transparent 65%);
  pointer-events: none;
}
.ce-testimonial-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.ce-quote-mark {
  font-size: 5rem;
  line-height: .8;
  color: var(--g);
  font-family: Georgia, serif;
  margin-bottom: .5rem;
}
.ce-testimonial blockquote {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 500;
  color: #fff;
  line-height: 1.65;
  font-style: italic;
  margin: 0 0 1.5rem;
}
.ce-testimonial cite {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  font-style: normal;
}
.ce-testimonial cite strong { color: rgba(255,255,255,.8); }

/* ── Card thumb ── */
.ce-card-thumb {
  width: 52px; height: 52px; border-radius: 10px;
  object-fit: cover; flex-shrink: 0;
}

/* ── Modal ── */
.ce-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,.6);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.ce-modal.open { display: flex; }
.ce-modal-box {
  background: #fff;
  border-radius: 16px;
  max-width: 1080px;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,.2);
  display: flex;
}
/* Image column */
.ce-modal-img-col {
  width: 42%;
  flex-shrink: 0;
  position: relative;
  background: var(--bg2);
}
.ce-modal-img-col img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
/* Right scrollable column */
.ce-modal-right {
  flex: 1;
  overflow-y: auto;
  position: relative;
}
.ce-modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(255,255,255,.92);
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: background .2s;
  z-index: 10;
}
.ce-modal-close:hover { background: #fff; color: var(--bk); }
.ce-modal-content { padding: 1.4rem 1.8rem 1.6rem; }
.ce-modal-header { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; padding-top: .3rem; }
.ce-modal-ico {
  width: 56px; height: 56px; flex-shrink: 0;
  border-radius: 12px;
  background: var(--g3);
  display: flex; align-items: center; justify-content: center;
}
.ce-modal-ico::before {
  font-size: 1.75rem;
  color: var(--g2);
  margin: 0 !important;
}
.ce-modal-ico.or { background: #fff3e0; }
.ce-modal-ico.or::before { color: var(--o); }
.ce-modal-tag {
  display: inline-block;
  background: var(--g3); color: var(--g2);
  font-size: .65rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: .2rem .65rem; border-radius: 20px; margin-bottom: .4rem;
}
.ce-modal-tag.or { background: #fff3e0; color: var(--o); }
.ce-modal-title { font-size: 1.15rem; font-weight: 700; color: var(--bk); line-height: 1.3; }
.ce-modal-section { margin-bottom: 1rem; }
.ce-modal-label {
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin-bottom: .5rem;
}
.ce-modal-text { font-size: .88rem; color: var(--muted); line-height: 1.75; }
.ce-modal-results { display: flex; flex-direction: column; gap: .5rem; }
.ce-modal-result {
  display: flex; align-items: flex-start; gap: .7rem;
  font-size: .85rem; color: var(--txt); line-height: 1.5;
}
.ce-modal-result::before {
  content: '';
  flex-shrink: 0;
  width: 18px; height: 18px; margin-top: 1px;
  background: var(--g3); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13 4L6.5 11 3 7.5' stroke='%237BBF3E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 11px;
}
.ce-modal-sols { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .6rem; }
.ce-modal-sol-link {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--g3); color: var(--g2);
  font-size: .78rem; font-weight: 600;
  padding: .4rem .9rem; border-radius: 20px;
  text-decoration: none; transition: background .2s, color .2s;
}
.ce-modal-sol-link:hover { background: var(--g2); color: #fff; }
.ce-modal-sol-link::before { font-size: .9rem; margin: 0 !important; }
.ce-modal-cta {
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border);
  display: flex; gap: 1rem; flex-wrap: wrap;
}
.ce-modal-cta a { font-size: .85rem; font-weight: 600; text-decoration: none; padding: .6rem 1.3rem; border-radius: 6px; transition: opacity .2s; }
.ce-modal-cta .btn-g { background: var(--g2); color: #fff; }
.ce-modal-cta .btn-g:hover { opacity: .85; }
.ce-modal-cta .btn-o { background: var(--o); color: #fff; }
.ce-modal-cta .btn-o:hover { opacity: .85; }

@media (max-width: 640px) {
  .ce-modal-box { flex-direction: column; max-height: 92vh; }
  .ce-modal-img-col { width: 100%; height: 200px; flex-shrink: 0; }
  .ce-modal-right { overflow-y: auto; }
  .ce-modal-content { padding: 1.2rem 1.4rem 1.6rem; }
}
