/* InstantCMS groups — mock friends.html layout
   https://docs.instantcms.ru/dev/templates/css-js */

.nx-body.groups-page {
  background:
    radial-gradient(circle at 83% 5%, rgba(36, 126, 174, 0.11), transparent 30rem),
    var(--bg);
}

.nx-body.groups-page .friends-heading {
  display: flex;
  padding-top: 42px;
  padding-bottom: 28px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.nx-body.groups-page .friends-heading h1 {
  margin: 8px 0;
  font-size: clamp(38px, 5vw, 52px);
  letter-spacing: -0.05em;
}

.nx-body.groups-page .friends-heading p {
  margin: 0;
  color: #7d92a3;
}

.nx-body.groups-page .add-friend-button {
  display: inline-flex;
  height: 39px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  color: #07141d;
  align-items: center;
  gap: 7px;
  background: linear-gradient(115deg, #66d0f7, #3bb2e7);
  font-size: 12px;
  font-weight: 800;
}

.nx-body.groups-page .friends-layout {
  display: grid;
  padding-bottom: 72px;
  grid-template-columns: minmax(0, 1fr) 275px;
  align-items: start;
  gap: 22px;
}

.nx-body.groups-page .friends-toolbar {
  display: flex;
  min-height: 45px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}

.nx-body.groups-page .friends-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.nx-body.groups-page .friends-tabs a,
.nx-body.groups-page .friends-tabs .menu a {
  position: relative;
  display: inline-flex;
  padding: 0 0 13px;
  color: #647a8c;
  font-size: 12px;
  font-weight: 700;
}

.nx-body.groups-page .friends-tabs a.is-active,
.nx-body.groups-page .friends-tabs .active > a,
.nx-body.groups-page .friends-tabs a.active {
  color: #e1ebf0;
}

.nx-body.groups-page .friends-tabs a.is-active::after,
.nx-body.groups-page .friends-tabs .active > a::after,
.nx-body.groups-page .friends-tabs a.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: #4bc2ef;
  content: "";
}

.nx-body.groups-page .friends-section-label {
  display: flex;
  margin: 0 0 12px;
  color: #718798;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nx-body.groups-page .friends-section-label i {
  height: 1px;
  background: var(--line);
  flex: 1;
}

.nx-body.groups-page .friends-section-label strong {
  color: #55c2e6;
}

.nx-body.groups-page .friends-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.nx-body.groups-page .friend-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(145deg, #101f2c, #0b1721);
}

.nx-body.groups-page .friend-card:hover {
  border-color: rgba(73, 185, 230, 0.25);
}

.nx-body.groups-page .friend-card__cover {
  height: 86px;
  background-position: center;
  background-size: cover;
}

.nx-body.groups-page .friend-card__user {
  display: grid;
  padding: 12px 13px 0;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.nx-body.groups-page .friend-card__avatar {
  display: grid;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 50%;
  color: #071821;
  background: linear-gradient(135deg, #73dfff, #3c7cc1);
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}

.nx-body.groups-page .friend-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nx-body.groups-page .friend-card__user strong {
  display: block;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nx-body.groups-page .friend-card__user strong a {
  color: var(--text);
}

.nx-body.groups-page .friend-card__user small {
  color: #597082;
  font-size: 11px;
}

.nx-body.groups-page .friend-card > p {
  height: 40px;
  margin: 8px 0 0;
  padding: 0 13px;
  overflow: hidden;
  color: #667c8e;
  font-size: 12px;
}

.nx-body.groups-page .friend-card__actions {
  display: flex;
  padding: 12px 13px 14px;
}

.nx-body.groups-page .friend-join {
  display: flex;
  width: 100%;
  height: 32px;
  border: 0;
  border-radius: 6px;
  color: #07141d;
  align-items: center;
  justify-content: center;
  background: #55c5ed;
  font-size: 12px;
  font-weight: 700;
}

.nx-body.groups-page .friends-sidebar .forum-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(160deg, #101f2c, #0b1721);
}

.nx-body.groups-page .friends-sidebar .forum-panel + .forum-panel {
  margin-top: 12px;
}

.nx-body.groups-page .forum-panel__title h2 {
  margin: 0 0 12px;
  font-size: 15px;
}

.nx-body.groups-page .groups-side-note,
.nx-body.groups-page .friend-suggestions small {
  color: #6d8294;
  font-size: 12px;
  line-height: 1.5;
}

.nx-body.groups-page .friend-requests a,
.nx-body.groups-page .friend-suggestions a {
  color: #62c8eb;
  font-weight: 700;
}

.nx-body.groups-page .friend-suggestions article {
  display: flex;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.nx-body.groups-page .groups-empty {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  background: linear-gradient(145deg, #101f2c, #0b1721);
}

.nx-body.groups-page .group-hero {
  min-height: 220px;
  padding: 48px 0 28px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 80% 0, rgba(36, 126, 174, 0.18), transparent 28rem),
    #08121b;
  background-size: cover;
}

.nx-body.groups-page .group-hero__inner {
  display: flex;
  align-items: flex-end;
  gap: 18px;
}

.nx-body.groups-page .group-hero__logo {
  display: block;
  width: 84px;
  height: 84px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0d1a24;
}

.nx-body.groups-page .group-hero__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nx-body.groups-page .group-hero h1 {
  margin: 8px 0;
  font-size: clamp(32px, 4vw, 46px);
}

.nx-body.groups-page .group-hero h1 small {
  margin-left: 10px;
  color: #7d92a3;
  font-size: 14px;
}

.nx-body.groups-page .group-hero p,
.nx-body.groups-page .group-hero a {
  color: #8aa0b0;
}

.nx-body.groups-page .group-tabs {
  padding-top: 8px;
  border-bottom: 1px solid var(--line);
}

.nx-body.groups-page .group-tabs .menu {
  display: flex;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
}

.nx-body.groups-page .group-tabs li,
.nx-body.groups-page .group-tabs .menu li {
  list-style: none;
}

.nx-body.groups-page .group-tabs li::before,
.nx-body.groups-page .group-tabs .menu li::marker {
  content: none;
  display: none;
}

.nx-body.groups-page .group-body {
  padding: 28px 0 72px;
}

.nx-body.groups-page .group-fields {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, #101f2c, #0b1721);
}

.nx-body.groups-page .group-fields h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.nx-body.groups-page .group-field {
  margin-bottom: 12px;
  color: #c5d8e4;
}

.nx-body.groups-page .group-field span {
  display: block;
  margin-bottom: 4px;
  color: #6d8294;
  font-size: 11px;
  font-weight: 700;
}

.nx-body.groups-page .content_datasets {
  margin: 0 0 18px !important;
}

@media (max-width: 980px) {
  .nx-body.groups-page .friends-layout,
  .nx-body.groups-page .friends-grid {
    grid-template-columns: 1fr;
  }

  .nx-body.groups-page .friends-heading {
    flex-direction: column;
    align-items: flex-start;
  }
}
