/* Base */
.tc-wrap { box-sizing: border-box; }
.tc-wrap * { box-sizing: inherit; }

.tc-block-title{
  font-size: 34px;
  font-weight: 800;
  margin: 0 0 18px;
  letter-spacing: .3px;
}

.tc-city{ margin: 22px 0 40px; }
.tc-city__title{
  font-size: 40px;
  font-weight: 800;
  margin: 0 0 16px;
}

.tc-group{ margin: 14px 0 22px; }
.tc-group__title{
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: .6px;
}

/* Grids */
.tc-grid{
  display: grid;
  gap: 18px;
}
.tc-grid--contacts{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tc-cta--category .tc-grid--contacts{
  grid-template-columns: repeat(1, minmax(0, 1fr));
}


@media (max-width: 900px){
  .tc-grid--contacts{ grid-template-columns: 1fr; }
}
.tc-grid--cta{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 900px){
  .tc-grid--cta{ grid-template-columns: 1fr; }
}
.tc-grid--sidebar{
  grid-template-columns: 1fr;
}

/* Card */
.tc-card{
  display: grid;
  grid-template-columns: 160px 1fr;
  overflow: hidden;
  border-radius: 14px;
  background: #2f3b49;
  color: #fff;
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
}
.tc-card__photo{
  background: #e9eef3;
  display:flex;
  align-items:flex-end;
  justify-content:center;
}
.tc-card__photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}
.tc-card__body{
  padding: 16px 18px;
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.tc-name{
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
}
.tc-position{
  font-size: 14px;
  opacity: .9;
  margin-top: 6px;
}
.tc-phones{
  display:flex;
  flex-direction:column;
  gap: 6px;
}
.tc-phone{
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .2px;
}
.tc-phone:hover{ text-decoration: underline; }

.tc-email{
  display:inline-block;
  margin-top: 6px;
  color: #fff;
  text-decoration: none;
  opacity: .95;
  font-size: 13px;
}
.tc-email:hover{ text-decoration: underline; }

/* Messengers */
.tc-messengers{
  display:flex;
  gap: 10px;
  margin-top: 8px;
}
.tc-ms{
  width: 34px;
  height: 34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  transition: transform .12s ease, background .12s ease;
}
.tc-ms svg{
  width: 18px;
  height: 18px;
  fill: #fff;
  display:block;
}
.tc-ms:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.18);
}

/* Variant tweaks */
.tc-card--contacts{ grid-template-columns: 190px 1fr; }
@media (max-width: 600px){
  .tc-card, .tc-card--contacts{ grid-template-columns: 120px 1fr; }
}

/* CTA blocks (category + sidebar) */
.tc-cta{

 
 
}
.tc-cta__head{ margin-bottom: 14px; }
.tc-cta__kicker{
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  font-size: 12px;
  opacity: .75;
  margin-bottom: 8px;
}
.tc-cta__title{
  font-size: 28px;
  font-weight: 900;
  margin: 0;
  color: #e6004c; /* акцент */
  letter-spacing: .4px;
}
.tc-cta__subtitle{
  margin-top: 6px;
  font-weight: 700;
  color: #111;
  opacity: .9;
}
.tc-cta__footer{
  margin-top: 14px;
  display:flex;
  justify-content:center;
}

.tc-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 18px;
  border-radius: 12px;
  border: 2px solid #e6004c;
  color: #111;
  text-decoration:none;
  font-weight: 900;
  background: #fff;
}
.tc-btn:hover{ filter: brightness(.98); }
.tc-btn--wide{ width: 100%; }

/* Tabs */
.tc-tabs{
  display:none; /* по умолчанию скрываем, включаем на мобиле */
  gap: 10px;
  margin: 10px 0 14px;
}
.tc-tab{
  appearance:none;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  padding: 10px 12px;
  border-radius: 999px;
  cursor:pointer;
  font-weight: 800;
  font-size: 13px;
}
.tc-tab.is-active{
  border-color:#e6004c;
  box-shadow: 0 8px 16px rgba(230,0,76,.12);
}

.tc-panels{ display:block; }
.tc-panel{ display:block; }

.tc-panel[aria-hidden="true"]{ display:block; } /* десктоп */
.tc-panel.is-active{ display:block; }

.tc-cta--category{
    margin-top: 40px;
}

/* Category layout: desktop two cities columns; mobile = tabs with one panel */
.tc-cta--category .tc-panels{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 820px){
  .tc-cta--category .tc-tabs{ display:flex; flex-wrap:wrap; }
  .tc-cta--category .tc-panels{ display:block; }
  .tc-cta--category .tc-panel{ display:none; }
  .tc-cta--category .tc-panel.is-active{ display:block; }


    .tc-cta--category .tc-grid--contacts{
  gap: 22px;
}


}

/* Sidebar: всегда табы, панели по одной */
.tc-cta--sidebar .tc-tabs{ display:flex; flex-wrap:wrap; }
.tc-cta--sidebar .tc-panel{ display:none; margin-top: 12px; }
.tc-cta--sidebar .tc-panel.is-active{ display:block; }

/* Cards in CTA: чуть светлее */
.tc-card--cta, .tc-card--sidebar{
  background:#2f3b49;
}
.tc-empty{
  padding: 12px;
  border-radius: 12px;
  background: rgba(0,0,0,.05);
}



/* ===== TEAM CONTACTS – PREMIUM LOOK ===== */
:root{
  --tc-accent: #b10036;
  --tc-dark:   #2f3b49;
  --tc-dark-2: #24313e;
  --tc-light:  rgba(255,255,255,.92);
  --tc-muted:  rgba(255,255,255,.75);
}

/* Заголовки секций/групп — аккуратнее + акцент */
.tc-city__title{
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: .2px;
  margin-bottom: 14px;
}
.tc-group__title{
  position: relative;
  padding-left: 14px;
  margin: 10px 0 14px;
}
.tc-group__title:before{
  content:"";
  position:absolute;
  left:0; top:.35em;
  width: 6px; height: 1.2em;
  border-radius: 6px;
  background: var(--tc-accent);
  box-shadow: 0 8px 18px rgba(177,0,54,.25);
}

/* Сетка контактов — чуть более “воздушная” */
.tc-grid--contacts{
  gap: 64px 22px;
}

/* Карточка */
.tc-card--contacts{
  position: relative;
  overflow: visible;                 /* важно: даём фото выходить за рамку */
  border-radius: 0 18px 18px 0 ;
  background: linear-gradient(135deg, var(--tc-dark), var(--tc-dark-2));
  box-shadow: 0 18px 40px rgba(0,0,0,.14);
  border: 1px solid rgba(255,255,255,.08);
  transform: translateZ(0);
}

/* Акцентная “полоса” слева + лёгкий глянец сверху */
.tc-card--contacts:before{
  content:"";
  position:absolute;
  left:-1px; top:-1px; bottom:-1px;
  width: 5px;

  background: var(--tc-accent);
  box-shadow: 0 14px 26px rgba(177,0,54,.30);
}

/* Левая зона фото — без заливки, чтобы PNG выглядел “дороже” */
.tc-card--contacts .tc-card__photo{
  position: relative;
  background: transparent;
  overflow: visible;
}

/* Фото “вылезает” + тень (для прозрачного PNG по пояс — огонь) */
.tc-card--contacts .tc-card__photo img{
  position: absolute;
  left: -18px;
  bottom: -14px;
  width: 220px;
  height: auto;
  object-fit: contain !important; /* важно для прозрачного фона */
  filter: drop-shadow(0 22px 22px rgba(0,0,0,.28));
  transform: translateZ(0);
}

/* Чуть больше места справа */
.tc-card--contacts .tc-card__body{
  padding: 18px 20px 18px 18px;
}

/* Типографика */
.tc-card--contacts .tc-name{
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  letter-spacing: .2px;
}
.tc-card--contacts .tc-position{
  color: var(--tc-muted);
  font-size: 14px;
  margin-top: 6px;
}

/* Телефоны — жирно, с иконкой */
.tc-card--contacts .tc-phone{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
}
.tc-card--contacts .tc-phone:hover{
  color: #fff;
  text-decoration: none;
  opacity: .95;
}

/* Email — с иконкой, аккуратнее */
.tc-card--contacts .tc-email{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--tc-light);
  opacity: .9;
}
.tc-card--contacts .tc-email:hover{
  opacity: 1;
  text-decoration: none;
}

/* Иконки для phone/email через mask (без изменения HTML) */
.tc-card--contacts .tc-phone:before,
.tc-card--contacts .tc-email:before{
  content:"";
  width: 16px;
  height: 16px;
  background: var(--tc-accent);
  display: inline-block;
  border-radius: 4px;
  box-shadow: 0 10px 18px rgba(177,0,54,.22);
}

/* phone icon */
.tc-card--contacts .tc-phone:before{
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8c1.8 3.5 3.9 5.6 7.4 7.4l2.5-2.5c.3-.3.7-.4 1.1-.3 1.2.4 2.6.7 4 .7.6 0 1 .4 1 1V21c0 .6-.4 1-1 1C10.9 22 2 13.1 2 2c0-.6.4-1 1-1h3.9c.6 0 1 .4 1 1 0 1.4.2 2.8.7 4 .1.4 0 .8-.3 1.1L6.6 10.8z'/%3E%3C/svg%3E") no-repeat center / 12px 12px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8c1.8 3.5 3.9 5.6 7.4 7.4l2.5-2.5c.3-.3.7-.4 1.1-.3 1.2.4 2.6.7 4 .7.6 0 1 .4 1 1V21c0 .6-.4 1-1 1C10.9 22 2 13.1 2 2c0-.6.4-1 1-1h3.9c.6 0 1 .4 1 1 0 1.4.2 2.8.7 4 .1.4 0 .8-.3 1.1L6.6 10.8z'/%3E%3C/svg%3E") no-repeat center / 12px 12px;
}

/* email icon */
.tc-card--contacts .tc-email:before{
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5L4 8V6l8 5 8-5v2z'/%3E%3C/svg%3E") no-repeat center / 12px 12px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5L4 8V6l8 5 8-5v2z'/%3E%3C/svg%3E") no-repeat center / 12px 12px;
}

/* Мессенджеры — “дороже”: обводка, свет, акцент при ховере */
.tc-card--contacts .tc-messengers{
  gap: 12px;
  margin-top: 10px;
}
.tc-card--contacts .tc-ms{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 14px 22px rgba(0,0,0,.16);
}
.tc-card--contacts .tc-ms svg{
  width: 18px;
  height: 18px;
  fill: #fff;
  opacity: .95;
}
.tc-card--contacts .tc-ms:hover{
  background: rgba(177,0,54,.18);
  border-color: rgba(177,0,54,.35);
  transform: translateY(-2px);
}

/* Адаптив: на мобиле фото меньше и не слишком “вылезает” */
@media (max-width: 600px){
  .tc-card--contacts{
    grid-template-columns: 120px 1fr;
  }
  .tc-card--contacts .tc-card__photo img{
    width: 150px;
    left: -10px;
    bottom: -10px;
    filter: drop-shadow(0 18px 18px rgba(0,0,0,.25));
  }
  .tc-card--contacts .tc-name{ font-size: 18px; }
  .tc-city__title{ font-size: 34px; }
}



/* ===== CONTACTS PAGE: photo RIGHT + POP UP ===== */

/* Разворачиваем сетку карточки: фото справа */
.tc-card--contacts{
  grid-template-columns: 1fr 220px; /* текст слева, фото справа */
}

/* Фото-блок справа */
.tc-card--contacts .tc-card__photo{
  order: 2;
  position: relative;
  background: transparent;
  overflow: visible;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

/* Текст слева */
.tc-card--contacts .tc-card__body{
  order: 1;
}


/* Фото “вылезает” ВВЕРХ и чуть вправо */
.tc-card--contacts .tc-card__photo img{
  position: absolute;
  right: 0;
  left: auto;
        /* вылезаем вверх */
   bottom: -1px;       /* убираем вылезание вниз */
  width: 240px;
  height: auto;
  object-fit: contain !important;
  filter: drop-shadow(0 26px 26px rgba(0,0,0,.28));
}

/* Под мобильную — меньше и аккуратнее */
@media (max-width: 600px){
  .tc-card--contacts{
    grid-template-columns: 1fr 140px;
  }
  .tc-card--contacts .tc-card__photo img{
    width: 160px;
    right: 0x;
    bottom: -1px;
    filter: drop-shadow(0 18px 18px rgba(0,0,0,.25));
  }
}

.tc-ms svg{
  width: 18px;
  height: 18px;
  display:block;
  color: #fff;       
}
.tc-ms svg path{
  stroke: currentColor; 
}


.tc-cta--category .tc-panel{
    

 
}


