/* r256 — Master profile tabs wide screen layout
   На больших экранах mprof-tabs показываются 3 карточками в ряд.
   Телефон и планшет остаются 2 в ряд, логика модальных окон не меняется. */

@media (min-width: 1280px) {
  .mprof-tabs.mprof-tabs--icons {
    grid-template-columns: repeat(3, minmax(260px, 1fr)) !important;
    max-width: 1120px !important;
    gap: 14px !important;
    align-items: stretch !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .mprof-tabs.mprof-tabs--icons .mprof-tab {
    min-height: 108px !important;
    padding: 16px 18px !important;
    border-radius: var(--ui-radius-lg, var(--radius-card, 18px)) !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
  }

  .mprof-tabs.mprof-tabs--icons .mprof-tab-ico {
    flex: 0 0 48px !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: var(--ui-radius-md, 10px) !important;
    font-size: 24px !important;
  }

  .mprof-tabs.mprof-tabs--icons .mprof-tab-copy {
    gap: 6px !important;
  }

  .mprof-tabs.mprof-tabs--icons .mprof-tab-label,
  .mprof-tabs.mprof-tabs--icons .mprof-tab.active .mprof-tab-label {
    font-size: 16px !important;
    line-height: 1.18 !important;
    letter-spacing: -.01em !important;
  }

  .mprof-tabs.mprof-tabs--icons .mprof-tab-desc {
    font-size: 12.5px !important;
    line-height: 1.35 !important;
    max-width: 100% !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .mprof-tabs.mprof-tabs--icons .mprof-tab-count,
  .mprof-tabs.mprof-tabs--icons .mprof-tab.active .mprof-tab-count {
    top: 12px !important;
    right: 12px !important;
  }
}

@media (min-width: 1600px) {
  .mprof-tabs.mprof-tabs--icons {
    max-width: 1240px !important;
    grid-template-columns: repeat(3, minmax(300px, 1fr)) !important;
    gap: 16px !important;
  }

  .mprof-tabs.mprof-tabs--icons .mprof-tab {
    min-height: 116px !important;
    padding: 18px 20px !important;
  }
}

@media (min-width: 768px) and (max-width: 1279px) {
  .mprof-tabs.mprof-tabs--icons {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-width: 920px !important;
  }
}

@media (max-width: 767px) {
  .mprof-tabs.mprof-tabs--icons {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
