/* ───────────────────────────────────────────
   Services Dropdown  — header mega-menu
   ─────────────────────────────────────────── */

.svc-dropdown {
  position: relative;
  display: flex;
  align-items: stretch;
}

.svc-dropdown__trigger {
  cursor: pointer;
}

/* Panel */
.svc-dropdown__panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 520px;
  padding: 16px 14px;
  background: #ffffff;
  border: 1px solid #dde5ef;
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(20, 40, 80, 0.14);
  z-index: 300;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

/* On pointer/mouse devices keep hover behaviour; touch devices rely on .open (click) */
@media (hover: hover) and (pointer: fine) {
  .svc-dropdown:hover .svc-dropdown__panel,
  .svc-dropdown:focus-within .svc-dropdown__panel {
    display: grid;
  }
}

.svc-dropdown.open .svc-dropdown__panel {
  display: grid;
}

/* Item */
.svc-dropdown__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  text-decoration: none;
  color: #203040;
  transition: background 140ms ease;
}

.svc-dropdown__item:hover {
  background: #f3f7fc;
}

/* Icon circle */
.svc-dropdown__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f3f7fc;
  border: 1px solid #e8edf4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* Text block */
.svc-dropdown__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.svc-dropdown__name {
  font-size: 13px;
  font-weight: 700;
  color: #203040;
  white-space: nowrap;
}

.svc-dropdown__desc {
  font-size: 11px;
  color: #6f8096;
  line-height: 1.45;
}

/* NEW badge */
.svc-dropdown__new {
  display: inline-block;
  background: #dd3c44;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 4px;
  vertical-align: middle;
  letter-spacing: 0.04em;
}

/* Responsive: stack on small screens */
@media (max-width: 980px) {
  .svc-dropdown__panel {
    position: fixed;
    top: auto;
    left: 8px;
    right: 8px;
    transform: none;
    min-width: 0;
    width: auto;
    grid-template-columns: 1fr;
    max-height: 70vh;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(20, 40, 80, 0.25);
  }
}
@media (max-width: 480px) {
  .svc-dropdown__panel {
    left: 4px;
    right: 4px;
    padding: 10px 8px;
  }
  .svc-dropdown__item {
    padding: 10px 12px;
  }
  .svc-dropdown__desc {
    display: none;
  }
}
