
  /* Принудительно растягиваем блок на всю ширину страницы —
     не полагаемся на настройку "Ширина" в самом Tilda.
     :has() работает в современных браузерах и цепляет ТОЛЬКО ту
     обёртку записи, внутри которой есть .t537 — другие блоки не затронет. */
  .r:has(> .t537){
    width: 100% !important;
    max-width: none !important;
  }
  .t537{
    width: 100% !important;
  }
  .t537 .t537__container{
    width: 100% !important;
    max-width: 1680px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
  }
  /* У .t-container (второй класс на этом же ) Tilda навешивает
     clearfix ::before/::after с content:"" — для старой float-вёрстки.
     В display:grid браузер считает такой псевдоэлемент настоящим
     элементом сетки и вставляет его ПЕРВОЙ ячейкой, из-за чего все
     карточки сдвигались на одну позицию (первая "карточка" в сетке
     на самом деле была этот пустой clearfix-бокс). Убираем контент —
     тогда псевдоэлементы не участвуют в раскладке грида. */
  .t537 .t537__container::before,
  .t537 .t537__container::after{
    content: none !important;
    display: none !important;
  }
  @media (max-width: 1100px){
    .t537 .t537__container{
      grid-template-columns: repeat(2, 1fr) !important;
    }
  }
  @media (max-width: 560px){
    .t537 .t537__container{
      grid-template-columns: 1fr !important;
    }
  }
  .t537 .t537__col{
    width: 100% !important;
    max-width: none !important;
    flex: none !important;
    padding: 0 !important;
  }
  .t537 .t537__itemwrapper{
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    cursor: pointer;
  }

  /* фото на всю карточку, лёгкое затемнение + зум при наведении */
  .t537 .t537__bgimg{
    background-size: cover !important;
    background-position: center center !important;
    filter: saturate(.9) brightness(.92);
    transition: transform .5s cubic-bezier(.4,0,.2,1);
  }
  .t537 .t537__itemwrapper:hover .t537__bgimg{
    transform: scale(1.06);
  }

  /* затемнение снизу для читаемости текста */
  .t537 .t537__itemwrapper::before{
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(10,10,10,.86) 0%, rgba(10,10,10,0) 58%);
    pointer-events: none;
  }

  /* плашка с текстом поверх фото, снизу */
  .t537 .t537__wrapperleft{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 12px;
    padding: 16px 18px !important;
    margin: 0 !important;
    background: transparent;
    transition: background-color .3s cubic-bezier(.4,0,.2,1);
  }
  .t537 .t537__itemwrapper:hover .t537__wrapperleft{
    background: #e3632a;
  }

  /* Принудительный сброс видимости текста — у Tilda в некоторых
     оформлениях T537 первая карточка блока получает скрытое/сжатое
     состояние подписи по умолчанию (родная тема блока), из-за чего
     после наложения наших стилей у неё пропадал текст, хотя разметка
     первой карточки ничем не отличается от остальных. */
  .t537 .t537__persname,
  .t537 .t537__persdescr{
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
  }
  .t537 .t537__persname{
    grid-column: 1;
    grid-row: 1;
    color: #fff !important;
    font-family: 'Inter', Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin: 0 0 4px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .t537 .t537__persdescr{
    grid-column: 1;
    grid-row: 2;
    color: rgba(255,255,255,.85) !important;
    font-family: 'Inter', Arial, sans-serif !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .t537 .t537__persdescr br{
    display: none;
  }

  /* белый кружок со стрелкой, появляется при наведении */
  .t537 .t537__wrapperleft::after{
    content: '→';
    grid-column: 2;
    grid-row: 1 / 3;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    color: #e3632a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    opacity: 0;
    transform: scale(.6);
    transition: opacity .3s cubic-bezier(.4,0,.2,1), transform .3s cubic-bezier(.4,0,.2,1);
  }
  .t537 .t537__itemwrapper:hover .t537__wrapperleft::after{
    opacity: 1;
    transform: scale(1);
  }

  /* полноэкранный просмотр фото по клику на карточку */
  .t537-lightbox{
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(10,10,10,.92);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease;
  }
  .t537-lightbox.is-open{
    opacity: 1;
    visibility: visible;
  }
  .t537-lightbox__img{
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
  }
  .t537-lightbox__close{
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .2s ease;
  }
  .t537-lightbox__close:hover{
    background: rgba(255,255,255,.24);
  }
  @media (max-width: 560px){
    .t537-lightbox{ padding: 16px; }
    .t537-lightbox__close{ top: 12px; right: 12px; width: 38px; height: 38px; font-size: 22px; }
  }
</style>

