/* Венеция — страница мастера (master/?master=slug). Цвета и шрифты — как в блоках Тильды на сайте:
   вино #610a19, карточки #f3f3f3 со скруглением 15–20px, Montserrat, заголовки Bickham + Montserrat. */
.ven-m { padding: 150px 0 150px; font-family: 'Montserrat', Arial, sans-serif; color: #000; }
.ven-m .t-col { float: none; }
.ven-m__back { display: inline-block; margin-bottom: 30px; color: #610a19; font-size: 14px; text-decoration: none; }
.ven-m__back:hover { text-decoration: underline; }
.ven-m__top { display: flex; flex-wrap: wrap; align-items: stretch; }
.ven-m__top > .t-col { display: flex; }
.ven-m__img { flex: 1; min-height: 560px; border-radius: 15px; background: #f3f3f3 center top / cover no-repeat; }
.ven-m__card { flex: 1; box-sizing: border-box; padding: 50px 45px; border-radius: 20px; background: #f3f3f3; display: flex; flex-direction: column; justify-content: center; }
.ven-m__name { margin: 0 0 12px; font-size: 32px; line-height: 1.2; font-weight: 600; }
.ven-m__role { margin: 0 0 8px; font-size: 18px; line-height: 1.45; color: #666; }
.ven-m__years { margin: 0 0 24px; font-size: 16px; color: #610a19; }
.ven-m__about { margin: 0 0 32px; font-size: 16px; line-height: 1.55; }
.ven-m__btn { align-self: flex-start; display: inline-flex; align-items: center; height: 45px; padding: 0 30px; border: 2px solid #610a19; border-radius: 30px; color: #610a19; font-size: 14px; font-weight: 600; text-transform: uppercase; text-decoration: none; transition: background-color .2s, color .2s; }
.ven-m__btn:hover { background: #610a19; color: #fff; }
.ven-m__sec { margin-top: 105px; }
.ven-m__sec .t056__title { margin-bottom: 40px; }
.ven-m__edu { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
.ven-m__edu li { break-inside: avoid; display: flex; gap: 20px; padding: 14px 0; border-bottom: 1px solid #e3e3e3; font-size: 15px; line-height: 1.45; }
.ven-m__edu b { flex: 0 0 92px; color: #610a19; font-weight: 600; }
.ven-m__grid { columns: 4 240px; column-gap: 16px; }
.ven-m__grid a { display: block; margin-bottom: 16px; break-inside: avoid; border-radius: 15px; overflow: hidden; background: #f3f3f3; }
.ven-m__grid img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ven-m__grid a:hover img { transform: scale(1.03); }
.ven-m__grid--certs { columns: 5 180px; }
.ven-m__empty { font-size: 16px; color: #666; }
.ven-lb { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .9); }
.ven-lb[hidden] { display: none; }
.ven-lb img { max-width: calc(100vw - 140px); max-height: calc(100vh - 60px); border-radius: 6px; }
.ven-lb button { position: absolute; border: 0; background: none; color: #fff; font: 300 54px/1 Arial, sans-serif; cursor: pointer; padding: 10px 18px; }
.ven-lb__x { top: 10px; right: 10px; font-size: 44px !important; }
.ven-lb__p { left: 10px; }
.ven-lb__n { right: 10px; }
@media (max-width: 960px) {
  .ven-m { padding: 90px 0 90px; }
  .ven-m .t056__title span:first-child { font-size: 46px !important; }
  .ven-m .t056__title span + span { font-size: 26px !important; }
  .ven-m__role { font-size: 16px; }
  .ven-m__top > .t-col { width: 100%; max-width: none; }
  .ven-m__img { min-height: 0; aspect-ratio: 4 / 5; margin-bottom: 20px; max-width: 480px; }
  .ven-m__card { padding: 30px 24px; }
  .ven-m__name { font-size: 26px; }
  .ven-m__sec { margin-top: 70px; }
  .ven-m__edu { columns: 1; }
  .ven-m__grid { columns: 2 140px; column-gap: 10px; }
  .ven-m__grid a { margin-bottom: 10px; }
  .ven-lb img { max-width: 100vw; }
}

/* главная: «Портфолио →» в блоке основателя (T545) — как кнопка на карточках мастеров T774 */
.ven-f-more { margin-top: 28px; }
.ven-f-more .t-btntext { color: #610a19; font-family: 'Montserrat', Arial, sans-serif; font-weight: 400; text-decoration: none; transition: opacity .2s ease-in-out; }
.ven-f-more .t-btntext:hover { opacity: .7; }
