/* Services: Cards compact like Stats + Mobile Accordion */

/* Cards grid wrapper */
.services-cards{
  display: none;
  gap: 16px;
}

/* Card */
.svc-card{
  border: 1px solid rgba(17,24,39,.10);
  border-radius: 14px;
  background: #fff;
  padding: 16px 16px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(17,24,39,.03);
  min-height: 150px;
}

.svc-card__icon{
  width: 40px;
  height: 40px;
  margin: 0 auto 10px auto;
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(18,32,68,.90);
}

.svc-card__icon svg{
  width: 40px;
  height: 40px;
}

.svc-card__title{
  margin: 0 0 8px 0;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: rgba(17,24,39,.92);
  font-size: 15.5px;
  line-height: 1.2;
}

.svc-card__desc{
  margin: 0 auto;
  max-width: 38ch;
  color: rgba(17,24,39,.62);
  line-height: 1.55;
  font-size: 13.25px;

  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Accordion */
.services-accordion{
  border: 1px solid rgba(17,24,39,.06);
}

.services-accordion__list{
  display: grid;
  gap: 8px;
}

.services-accordion details.svc{
  border: 1px solid rgba(17,24,39,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 10px 30px rgba(17,24,39,.04);
  overflow: hidden;
}

.services-accordion details.svc > summary{ list-style: none; }
.services-accordion details.svc > summary::-webkit-details-marker{ display:none; }

.svc__sum{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 14px 16px;
  cursor:pointer;
}

.svc__left{
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap: 10px;
  min-width: 0;
}

.svc__kicker{ flex: 0 0 auto; }

.svc__title{
  font-weight: 800;
  letter-spacing: -0.01em;
  color: rgba(17,24,39,.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.svc__chev{
  flex: 0 0 auto;
  opacity: .65;
  transition: transform .18s ease;
  font-size: 18px;
  line-height: 1;
}
details[open] .svc__chev{ transform: rotate(180deg); }

.svc__body{ padding: 0 16px 16px 16px; }

.svc__desc{
  color: rgba(17,24,39,.70);
  line-height: 1.65;
  margin: 0;
  padding-top: 2px;
}

/* Responsive: mobile accordion, tablet+ cards */
@media (max-width: 767px){
  .services-cards{ display:none; }
  .services-accordion{ display:block; }
}

@media (min-width: 768px){
  .services-accordion{ display:none; }
  .services-cards{
    display:grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (min-width: 1024px){
  .services-cards{
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
}
