/* ============================================================
   MOBILE IMPROVEMENTS — itwillbe.com
   Улучшения адаптивности + объём + дизайн карточек
   ============================================================ */

/* ---- ОБЩИЕ УЛУЧШЕНИЯ: объём и тени ---- */

.popular-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.popular-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(0,151,246,0.15), 0 2px 8px rgba(0,0,0,0.06);
}
.popular-item > img,
.popular-item > a > img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.popular-title {
  margin: 12px 14px 6px;
  font-size: 0.9em;
  line-height: 1.4;
  display: block;
  color: #0097f6;
}
.popular-info {
  margin: 0 14px 14px;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
}
.popular-info p {
  margin-bottom: 4px;
  font-size: 0.72em;
  color: #888;
}


/* Кнопки — объём */
.btn-create {
  box-shadow: 0 4px 12px rgba(0,151,246,0.25), inset 0 -2px 0 rgba(0,0,0,0.12);
}
.btn-create:hover {
  box-shadow: 0 6px 18px rgba(0,151,246,0.35), inset 0 -2px 0 rgba(0,0,0,0.12);
  transform: translateY(-1px);
}

/* Header улучшения */
.header-top {
  backdrop-filter: blur(4px);
}

/* Хедер-лого — не переполняется */
.header-logo {
  min-width: 0;
  flex-shrink: 1;
}

/* ============================================================
   POPULAR SECTION — ровно 2 строки (3 или 4 в ряд)
   ============================================================ */

.popular-list {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -12px;
  list-style: none;
  padding: 0;
}
.popular-list li {
  float: none !important;
  display: flex !important;
  flex-direction: column;
  padding: 0 12px;
  margin-bottom: 24px;
  /* 4 в ряд по умолчанию — показываем 8 (2 строки) */
  width: 25% !important;
}
.popular-item {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Скрываем 3-ю строку и далее через :nth-child */
/* При 4 в ряд — скрываем с 9-го */
.popular-list li:nth-child(n+9) {
  display: none !important;
}

/* ============================================================
   BREAKPOINT: ≤ 1170px — 3 в ряд → показываем 6
   ============================================================ */
@media only screen and (max-width: 1170px) {
  .popular-list {
    margin: 0 -10px;
  }
  .popular-list li {
    width: 33.333% !important;
    padding: 0 10px;
  }
  /* Скрываем с 7-го (3 в ряд × 2 строки = 6) */
  .popular-list li:nth-child(n+7) {
    display: none !important;
  }
  .popular-list li:nth-child(-n+6) {
    display: flex !important;
  }
}

/* ============================================================
   BREAKPOINT: ≤ 992px — контейнер, хедер, меню
   ============================================================ */
@media only screen and (max-width: 992px) {
  .container, .modal {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }

  /* Хедер — фиксируем верхнюю строку */
  .header-top {
    padding: 14px 0;
  }
  .header-top .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
  }
  .header-logo {
    width: auto !important;
    flex: 0 0 auto;
    margin-right: 10px;
  }
  .header-info {
    width: auto !important;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 !important;
  }
  .header-info-btn {
    display: flex !important;
    align-items: center;
    gap: 8px;
  }
  .header-login {
    margin: 0 !important;
    white-space: nowrap;
    padding: 6px 14px;
    font-size: 0.82em;
    min-width: auto;
  }
  .header-info-profile {
    display: inline-flex !important;
    align-items: center;
  }
  .header-profile {
    width: auto !important;
    min-width: 120px;
    height: 40px;
  }
  .header-profile a span {
    width: 80px !important;
    font-size: 0.75em;
  }

  /* Бургер-меню */
  .header-menu-toggle {
    margin-top: 0 !important;
    margin-left: 16px;
    flex-shrink: 0;
  }

  /* Popular — 3 в ряд */
  .popular-list li {
    width: 33.333% !important;
    padding: 0 10px;
    margin-bottom: 20px;
  }
  .popular-list li:nth-child(n+7) {
    display: none !important;
  }
  .popular-list li:nth-child(-n+6) {
    display: flex !important;
  }
}

/* ============================================================
   BREAKPOINT: ≤ 768px — планшет портрет
   ============================================================ */
@media only screen and (max-width: 768px) {
  .container, .modal {
    width: 100% !important;
    padding-left: 14px;
    padding-right: 14px;
  }

  /* Хедер */
  .header-top .container {
    flex-wrap: wrap;
  }
  .header-logo {
    width: 55% !important;
    margin-bottom: 0;
  }
  .header-info {
    width: 45% !important;
    justify-content: flex-end;
  }
  .header-login {
    font-size: 0.78em;
    padding: 5px 10px;
    min-width: auto !important;
  }
  .header-profile {
    min-width: 100px;
    height: 36px;
  }
  .header-profile a span {
    width: 65px !important;
    font-size: 0.72em;
  }

  /* Popular — 2 в ряд */
  .popular-list li {
    width: 50% !important;
    padding: 0 10px;
    margin-bottom: 20px;
  }
  .popular-list li:nth-child(n+5) {
    display: none !important;
  }
  .popular-list li:nth-child(-n+4) {
    display: flex !important;
  }
  /* Популярные обратные отсчёты картинки */
  .popular-item > img,
  .popular-item > a > img {
    height: 130px;
  }
}

/* ============================================================
   BREAKPOINT: ≤ 480px — мобильный
   ============================================================ */
@media only screen and (max-width: 480px) {
  .container, .modal {
    width: 100% !important;
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Хедер — логотип слева, кнопка логина и бургер справа */
  .header-top .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
  }
  .header-logo {
    width: auto !important;
    flex: 1 1 auto;
    margin-bottom: 0;
  }
  .header-logo-comp {
    font-size: 24px !important;
    letter-spacing: 1px;
  }
  .header-info {
    width: auto !important;
    flex: 0 0 auto;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    gap: 6px;
  }
  .header-info-btn {
    display: flex !important;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    margin: 0 !important;
  }
  .header-login {
    margin: 0 !important;
    padding: 5px 10px;
    font-size: 0.74em;
    min-width: auto !important;
    white-space: nowrap;
    display: block !important;
  }
  .header-menu-toggle {
    margin: 0 !important;
    position: relative !important;
    float: none !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    flex-shrink: 0;
  }
  .header-profile {
    display: none;
  }
  /* Для залогиненных — профиль тоже компактный */
  .header-info-profile {
    display: none !important;
  }
  /* Показываем только в меню */
  .header-toggle {
    display: none !important;
  }

  /* Popular — 2 в ряд на мобильном */
  .popular-list {
    margin: 0 -8px;
  }
  .popular-list li {
    width: 50% !important;
    padding: 0 8px;
    margin-bottom: 16px;
  }
  .popular-list li:nth-child(n+5) {
    display: none !important;
  }
  .popular-list li:nth-child(-n+4) {
    display: flex !important;
  }
  .popular-item > img,
  .popular-item > a > img {
    height: 110px;
  }
  .popular-title {
    font-size: 0.8em;
    margin: 8px 10px 4px;
  }
  .popular-info {
    margin: 0 10px 10px;
  }
  /* Countdown страница */
  .countdown-dash {
    width: 100% !important;
  }
  .dash {
    padding: 0 4px;
  }
  .digit {
    font-size: 2em;
  }

  /* Footer */
  .footer-lang {
    width: 100% !important;
    float: none;
    margin-top: 10px;
    text-align: center;
    border-radius: 8px;
  }
}

/* ============================================================
   ДОПОЛНИТЕЛЬНЫЕ УЛУЧШЕНИЯ ДИЗАЙНА (все размеры)
   ============================================================ */

/* Секция Popular — заголовок */
.popular h2 {
  font-size: 1.6em;
}

/* Кнопка "Загрузить ещё" */
.popular-btn .btn-loadmore {
  border-radius: 24px;
  padding-left: 50px;
  padding-right: 28px;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #1e1e1e 0%, #292929 100%);
}

/* Плавный скролл */
html {
  scroll-behavior: smooth;
}

/* Изображения не вылезают */
img {
  max-width: 100%;
  height: auto;
}

/* Таблицы */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}



/* ================================================================
   HEADER SYSTEM — единая адаптивная система, перебивает всё старое
   Брейкпоинты: >1100 | 992-1100 | 768-992 | <768
   ================================================================ */

/* === БАЗА: сброс старого float-layout, flex для всех === */

.header-top {
  padding: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.25);
  z-index: 200 !important;
}

.header-top .container {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  height: 68px;
  padding: 0 20px !important;
  width: 100% !important;
  max-width: 1150px;
  box-sizing: border-box;
}

/* --- ЛОГОТИП --- */
.header-logo {
  float: none !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0;
  margin-right: 20px;
  padding: 0;
}

.logo { text-align: left; }

.header-logo-comp {
  font-size: 28px;
  letter-spacing: 2px;
  white-space: nowrap;
  line-height: 1;
  display: block;
}
.header-logo-comp small { font-size: 16px; }

/* Слоган рядом с логотипом */
.logo p {
  position: static !important;
  width: auto !important;
  margin: 2px 0 0 0;
  font-size: 0.72em;
  line-height: 1.2;
  opacity: 0.7;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.logo p::before { display: none !important; }

/* --- ПРАВАЯ ЧАСТЬ (header-info) --- */
.header-info,
.header-info.header-info-home,
.header-info.header-info-home.notlogin {
  float: none !important;
  flex: 1 1 auto !important;
  width: auto !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  padding: 0 !important;
  position: static !important;
  text-align: right;
}

/* --- КНОПКА СОЗДАТЬ --- */
.header-info .btn-create {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 10px 18px !important;
  font-size: 0.75em !important;
  letter-spacing: 0.8px;
  border-radius: 4px;
}

/* --- НАВИГАЦИОННОЕ МЕНЮ (горизонтальное) --- */
.header-menu {
  float: none !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  flex-shrink: 0;
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: static !important;
  background: transparent !important;
  width: auto !important;
  z-index: auto !important;
}

.header-menu > li {
  display: inline-block !important;
  float: none !important;
  margin: 0 !important;
  border: none !important;
}
.header-menu > li > a {
  color: #fff !important;
  font-family: AvenirNextCyrBold, sans-serif;
  font-size: 0.78em !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 12px !important;
  display: block !important;
  white-space: nowrap;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.header-menu > li > a:hover { opacity: 1; }

/* Бургер-кнопка — СКРЫТА на десктопе */
.header-menu-toggle { display: none !important; }

/* mobilehedmenu (дублирующий список из шаблона) — всегда скрыт */
ul.mobilehedmenu { display: none !important; }

/* Кнопка Log in (незалогинен) */
.header-login {
  flex-shrink: 0;
  white-space: nowrap;
  margin: 0 !important;
  padding: 7px 16px !important;
  font-size: 0.78em !important;
  min-width: auto !important;
  border-radius: 4px;
}

/* === КОМПАКТНЫЙ АВАТАР === */
.header-info-profile {
  display: inline-flex !important;
  align-items: center !important;
  flex-shrink: 0;
  position: relative;
}

.header-profile {
  /* Убираем старую рамку с именем */
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  display: inline-block !important;
  position: relative;
}

.header-profile > a {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  padding: 0 !important;
  height: auto !important;
  width: auto !important;
  position: relative;
  cursor: pointer;
}

/* Убираем стрелку */
.header-profile > a::after { display: none !important; }

/* Аватар-кружок */
.header-profile > a > img {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  border: 2px solid rgba(255,255,255,0.6);
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  transition: border-color 0.2s, box-shadow 0.2s;
  margin: 0 !important;
  display: block;
  object-fit: cover;
  flex-shrink: 0;
}
.header-profile:hover > a > img,
.header-profile:focus-within > a > img {
  border-color: rgba(255,255,255,0.95);
  box-shadow: 0 2px 12px rgba(0,151,246,0.45);
}

/* Зелёная точка онлайн */
.header-profile > a::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 9px;
  height: 9px;
  background: #4caf50;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.9);
  z-index: 2;
  pointer-events: none;
}

/* Имя пользователя — краткое, рядом с аватаром */
.header-profile > a > span {
  display: inline-block !important;
  color: rgba(255,255,255,0.9) !important;
  font-family: AvenirNextCyrDemi, sans-serif;
  font-size: 0.75em !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: auto !important;
  height: auto !important;
  overflow: hidden;
  white-space: nowrap;
  max-width: 90px;
  text-overflow: ellipsis;
}

/* Дропдаун профиля */
.header-profile .profile-drop {
  top: calc(100% + 8px) !important;
  right: 0 !important;
  left: auto !important;
  margin-top: 0 !important;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.16);
  border: 1px solid #eef2f7;
  min-width: 210px;
  padding: 6px 12px !important;
  z-index: 500;
}

/* ================================================================
   1100px — слоган убираем, чуть компактнее
   ================================================================ */
@media (max-width: 1100px) {
  .logo p { display: none !important; }
  .header-top .container { height: 62px; }
  .header-menu > li > a { padding: 6px 9px !important; }
  .header-info .btn-create { padding: 9px 14px !important; }
}

/* ================================================================
   992px — меню уходит в дропдаун, появляется бургер
   ================================================================ */
@media (max-width: 992px) {

  .header-top .container { height: 58px; }

  /* Бургер показываем */
  .header-menu-toggle {
    display: block !important;
    position: relative !important;
    float: none !important;
    flex-shrink: 0;
    order: 10;
    width: 28px;
    height: 20px;
    margin: 0 !important;
    cursor: pointer;
    background: none;
  }
  .header-menu-toggle,
  .header-menu-toggle::before,
  .header-menu-toggle::after {
    background: #fff !important;
  }
  .header-menu-toggle { height: 3px; border-radius: 2px; }
  .header-menu-toggle::before { top: -8px !important; height: 3px; border-radius: 2px; }
  .header-menu-toggle::after  { top:  8px !important; height: 3px; border-radius: 2px; }

  /* Горизонтальное меню → выпадающий список */
  .header-menu {
    display: block !important;
    flex-direction: column !important;
    position: absolute !important;
    right: 16px !important;
    top: calc(100% + 4px) !important;
    width: 220px !important;
    background: #fff !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 28px rgba(0,0,0,0.14) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    z-index: 300 !important;
    padding: 6px 0 !important;
    transition: opacity 0.2s, transform 0.2s !important;
    transform: translateY(-6px) !important;
  }
  .header-menu.current {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }
  .header-menu > li {
    display: block !important;
    border-bottom: 1px solid #f0f4f8 !important;
  }
  .header-menu > li:last-child { border-bottom: none !important; }
  .header-menu > li > a {
    color: #333 !important;
    font-size: 0.85em !important;
    padding: 11px 18px !important;
    opacity: 1 !important;
    display: block !important;
  }
  .header-menu > li > a:hover {
    color: #0097f6 !important;
    background: #f5f9ff;
  }

  /* Скрываем кнопку "Создать" в хедере (она есть в меню бургера) */
  .header-info .btn-create { display: none !important; }

  /* Кнопка логина — только иконка или короткая */
  .header-login {
    padding: 6px 12px !important;
    font-size: 0.72em !important;
  }

  /* Имя пользователя — скрываем */
  .header-profile > a > span { display: none !important; }

  /* Позиция дропдауна профиля */
  .header-profile .profile-drop {
    right: 0 !important;
    top: calc(100% + 8px) !important;
  }
}

/* ================================================================
   768px — всё максимально компактно
   ================================================================ */
@media (max-width: 768px) {
  .header-top .container {
    height: 54px;
    padding: 0 14px !important;
    gap: 8px !important;
  }

  .header-logo { margin-right: 0; }
  .header-logo-comp { font-size: 22px !important; }

  .header-info,
  .header-info.header-info-home,
  .header-info.header-info-home.notlogin {
    gap: 8px !important;
  }

  .header-login { display: block !important; }

  /* Аватар чуть меньше */
  .header-profile > a > img {
    width: 32px !important;
    height: 32px !important;
  }
  .header-profile > a::before {
    width: 8px; height: 8px;
  }
}

/* ================================================================
   480px — минимум
   ================================================================ */
@media (max-width: 480px) {
  .header-top .container {
    height: 50px;
    padding: 0 12px !important;
    gap: 6px !important;
  }
  .header-logo-comp { font-size: 20px !important; letter-spacing: 1px; }
  .header-logo-comp small { font-size: 13px; }

  /* Кнопка логина — только текст "Login" */
  .header-login {
    padding: 5px 10px !important;
    font-size: 0.7em !important;
    min-width: auto !important;
  }

  .header-menu { right: 12px !important; width: 200px !important; }
}



/* ================================================================
   CLEARFIX FIX для users-list:
   .clearfix::before создаёт ghost grid-item и сдвигает карточки.
   Сбрасываем его на display:none для grid-контейнера.
   ================================================================ */
.users-list.clearfix::before,
.users-list.clearfix::after {
  display: none !important;
  content: none !important;
}

/* Fix: .wrapper{overflow:hidden} из main.min.css обрезает первую карточку */
.users .wrapper {
  overflow: visible !important;
}

/* ================================================================
   USERS SECTION v2 — редизайн "Самые активные"
   ================================================================ */

.users {
  padding: 60px 0 70px !important;
  background: #f4f7fb !important;
}

.users h2 {
  margin-bottom: 10px !important;
  font-size: 1.6em;
  letter-spacing: 1px;
}

/* Синяя линия-акцент под заголовком */
.users h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: #0097f6;
  border-radius: 2px;
  margin: 12px auto 40px;
}

/* Сетка */
.users-list {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 22px !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  list-style: none !important;
}

.users-list > li {
  float: none !important;
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ---- КАРТОЧКА ----
   Полоска реализована через border-top, без ::before,
   чтобы не ломать flex-layout первой карточки
*/
.users-item {
  position: relative !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-top: 4px solid #0097f6 !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 3px 18px rgba(0,0,0,0.07) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease !important;
}

.users-item:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 12px 32px rgba(0,151,246,0.15) !important;
}

/* Аватар */
.users-item > img {
  position: static !important;
  display: block !important;
  width: 76px !important;
  height: 76px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  margin: 22px auto 0 !important;
  border: 3px solid #e8f4ff !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.10) !important;
  flex-shrink: 0;
}

/* Инфо-блок */
.user-info {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 14px 20px 16px !important;
  text-align: center;
  flex: 1;
}

/* Имя */
.user-info h5 {
  margin-bottom: 14px !important;
  font-size: 0.87em !important;
  font-family: AvenirNextCyrBold, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  line-height: 1.3;
  color: #1a2433;
}
.user-info h5 a {
  color: #1a2433 !important;
  text-decoration: none;
}
.user-info h5 a:hover { color: #0097f6 !important; }

/* Строки статов — display:flex с пробелом между label и value */
.user-info p {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 7px 0 !important;
  border-bottom: 1px solid #f0f5fb !important;
  font-size: 0.8em !important;
  color: #999 !important;
  gap: 8px !important;
}
.user-info p:last-of-type {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.user-info-desc {
  display: inline !important;
  width: auto !important;
  font-family: Exo2Light, sans-serif !important;
  color: #b0b8c4 !important;
  font-size: 1em !important;
  white-space: nowrap;
}

.user-info p .default-color {
  font-family: AvenirNextCyrDemi, sans-serif !important;
  font-size: 1.05em !important;
  color: #0097f6 !important;
}

/* ---- КНОПКИ ---- */
.users-item-links {
  position: static !important;
  display: flex !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 12px 20px 18px !important;
  left: auto !important;
  bottom: auto !important;
  width: 100%;
}

.users-item-links li {
  float: none !important;
  margin: 0 !important;
}

.users-item-links li a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background-color: #f0f5fb !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: 16px !important;
  transition: background-color 0.2s, transform 0.15s !important;
  border: none !important;
}
.users-item-links li a:hover {
  background-color: #ddeeff !important;
  transform: scale(1.12) !important;
}
.users-item-links li a.users-btn-add {
  background-color: #e8f5e9 !important;
}
.users-item-links li a.users-btn-added {
  background-color: #c8e6c9 !important;
}

/* Кнопка "Показать всех" */
.users-btn {
  margin-top: 36px !important;
  text-align: center;
}
.users-btn .btn {
  padding: 14px 44px !important;
  border-radius: 30px !important;
  font-size: 0.82em !important;
  letter-spacing: 1.2px !important;
  box-shadow: 0 6px 20px rgba(0,151,246,0.28) !important;
  transition: transform 0.18s, box-shadow 0.18s !important;
}
.users-btn .btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 28px rgba(0,151,246,0.38) !important;
}

/* ================================================================
   АДАПТИВ
   ================================================================ */

@media (max-width: 992px) {
  .users-list {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
}

@media (max-width: 600px) {
  .users { padding: 40px 0 50px !important; }

  .users-list {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Горизонтальные карточки на мобиле */
  .users-item {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    border-radius: 12px !important;
    border-top: none !important;
    border-left: 4px solid #0097f6 !important;
  }

  .users-item > img {
    width: 60px !important;
    height: 60px !important;
    margin: 16px 0 16px 16px !important;
  }

  .user-info {
    flex: 1 1 0 !important;
    padding: 14px 16px !important;
    text-align: left !important;
    min-width: 0;
  }

  .user-info h5 { text-align: left; margin-bottom: 8px !important; }

  .user-info p {
    padding: 4px 0 !important;
    border-bottom: none !important;
    font-size: 0.78em !important;
  }

  .users-item-links {
    width: 100% !important;
    padding: 8px 16px 14px 16px !important;
    justify-content: flex-start !important;
    border-top: 1px solid #f0f5fb;
  }
}
