/* Публичная страница турнира — верстка по макету Figma (колонка 1200, фон #F7F8FA) */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tp-fig {
  --fig-bg: #f7f8fa;
  --fig-navy: #004170;
  --fig-hero: #004a80;
  --fig-link: #005d96;
  --fig-muted: #acb9c1;
  --fig-text: #001224;
  --fig-body: #252a2f;
  --fig-rule-lbl: #6c757b;
  --fig-tab-inactive-bg: #f9fafd;
  --fig-tab-active-bg: #e9f5fa;
  --fig-tab-active: #037cbd;
  --fig-orange: #ff8b00;
  --fig-line: #e4eaef;
  --fig-ph: #f0f3f5;
  --fig-contact-bg: #f9fafd;
  --fig-rule-card: #f7f8fa;
  font-family: var(--font);
  background: var(--fig-bg);
  padding: 0 0 48px;
  min-height: 60vh;
}

/* Top rail — другие турниры */
.tp-fig-rail {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 1.25rem;
}

.tp-fig-rail__track {
  display: flex;
  gap: 12px;
  padding: 4px 4px 8px;
  min-height: 116px;
}

.tp-fig-rail-card {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  gap: 16px;
  min-width: 260px;
  max-width: 320px;
  padding: 16px;
  background: #fff;
  border-radius: 24px;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

.tp-fig-rail-card:hover {
  box-shadow: 0 4px 24px rgba(0, 18, 36, 0.08);
}

.tp-fig-rail-card__thumb {
  width: 84px;
  height: 84px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--fig-ph);
}

.tp-fig-rail-card__thumb--ph {
  background: var(--fig-ph);
}

.tp-fig-rail-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.tp-fig-rail-card__date {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--fig-text);
}

.tp-fig-rail-card__title {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--fig-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tp-fig-rail-card__venue {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  color: var(--fig-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Белая карточка: hero на всю ширину без внутренних полей, остальное — в inner */
.tp-fig-shell {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 24px rgba(0, 41, 80, 0.06);
}

.tp-fig-shell__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 20px 20px 32px;
}

@media (min-width: 768px) {
  .tp-fig-shell__inner {
    padding: 20px 40px 48px;
  }
}

/* Hero — прототип: фон Blue-Next #004A80 + два размытых SVG-блоба (#00CFDC и #02006C, opacity 0.32, blur 100) */
.tp-fig-hero {
  position: relative;
  background: var(--fig-hero);
  border-radius: 24px;
  overflow: hidden;
  color: #fff;
}

.tp-fig-hero__blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.tp-fig-hero__blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.32;
  filter: blur(100px);
  transform: translateZ(0);
}

/* Позиции близки к data-svg-wrapper из макета (правый верх и центр-верх) */
.tp-fig-hero__blob--cyan {
  width: 420px;
  height: 380px;
  background: #00cfdc;
  right: -120px;
  top: -200px;
}

.tp-fig-hero__blob--indigo {
  width: 520px;
  height: 400px;
  background: #02006c;
  left: 18%;
  top: -160px;
}

.tp-fig-hero__row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

@media (min-width: 768px) {
  .tp-fig-hero {
    height: 360px;
  }

  .tp-fig-hero__row {
    flex-direction: row;
    align-items: stretch;
    height: 100%;
    min-height: 360px;
  }
}

.tp-fig-hero__media {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.12);
  border-top-left-radius: 24px;
}

@media (max-width: 767px) {
  .tp-fig-hero__media {
    border-top-right-radius: 24px;
  }
}

@media (min-width: 768px) {
  .tp-fig-hero__media {
    width: 360px;
    height: 360px;
    border-bottom-left-radius: 24px;
  }
}

.tp-fig-hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .tp-fig-hero__img {
    width: 360px;
    height: 360px;
    max-width: none;
  }
}

.tp-fig-hero__img--ph {
  min-height: 200px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.2));
}

@media (min-width: 768px) {
  .tp-fig-hero__img--ph {
    width: 360px;
    height: 360px;
    min-height: 360px;
  }
}

.tp-fig-hero__main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
  padding: 24px 20px 28px;
  min-width: 0;
}

@media (min-width: 768px) {
  .tp-fig-hero__main {
    padding: 40px 48px 40px 40px;
    gap: 32px;
  }
}

.tp-fig-hero__title {
  margin: 0;
  font-size: clamp(22px, 3.2vw, 40px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}

/* Перебивает main h1 из app.css */
main .tp-fig-hero h1.tp-fig-hero__title {
  color: #fff;
}

.tp-fig-hero__cols {
  display: grid;
  gap: 16px 24px;
  grid-template-columns: 1fr;
}

.tp-fig-hero__cols--2 {
  max-width: 520px;
}

@media (min-width: 480px) {
  .tp-fig-hero__cols--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tp-fig-hero__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tp-fig-hero__lbl {
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: #fff;
  opacity: 0.32;
}

.tp-fig-hero__val {
  font-size: 20px;
  line-height: 28px;
  font-weight: 400;
  color: #fff;
}

.tp-fig-hero__cta {
  margin-top: 0;
}

.tp-fig-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 12px;
  background: var(--fig-orange);
  color: #fff !important;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.tp-fig-btn:hover {
  filter: brightness(1.05);
}

.tp-fig-btn--full {
  width: 100%;
}

/* Tabs */
.tp-fig-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tp-fig-tab {
  flex: 1 1 120px;
  text-align: center;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
  text-decoration: none;
  color: var(--fig-body);
  background: var(--fig-tab-inactive-bg);
  border: 1px solid transparent;
  box-sizing: border-box;
}

.tp-fig-tab:hover {
  color: var(--fig-tab-active);
  background: #f0f6fc;
}

.tp-fig-tab.is-active {
  color: var(--fig-tab-active);
  background: var(--fig-tab-active-bg);
}

/* Sections */
.tp-fig-block {
  margin: 0;
}

.tp-fig-h2-center {
  margin: 0 0 24px;
  text-align: center;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  color: var(--fig-navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tp-fig-h2-left {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  color: var(--fig-navy);
}

.tp-fig-muted-center {
  text-align: center;
  color: var(--fig-rule-lbl);
  margin: 0;
  font-size: 15px;
}

/* Participants */
.tp-fig-participants {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.tp-fig-participant {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--fig-ph);
  border: 2px solid #e8ecf0;
  flex-shrink: 0;
}

.tp-fig-participant img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tp-fig-participant__ph {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #dbeafe, #e8ecf0);
}

/* Rules — два блока */
.tp-fig-rules {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .tp-fig-rules {
    grid-template-columns: 1fr 1fr;
  }
}

.tp-fig-rule-card {
  background: var(--fig-rule-card);
  border-radius: 16px;
  overflow: hidden;
}

.tp-fig-rule-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  font-size: 15px;
  line-height: 22px;
}

.tp-fig-rule-row:nth-child(odd) {
  background: #fff;
}

.tp-fig-rule-row:nth-child(even) {
  background: var(--fig-rule-card);
}

.tp-fig-rule-lbl {
  color: var(--fig-rule-lbl);
  font-weight: 400;
}

.tp-fig-rule-val {
  color: var(--fig-body);
  font-weight: 500;
  text-align: right;
}

/* «Ближайшие матчи» на вкладке «Описание» (Figma: match start page) */
.tp-fig-ms {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  container-type: inline-size;
  container-name: tpfigms;
}

.tp-fig-ms__head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px 16px;
  min-height: 32px;
  align-self: stretch;
  width: 100%;
}

.tp-fig-ms__title {
  grid-column: 2;
  justify-self: center;
  margin: 0;
  text-align: center;
  color: #004170;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.tp-fig-ms__sched-link {
  grid-column: 3;
  justify-self: end;
  flex-shrink: 0;
  color: #005d96;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tp-fig-ms__sched-link:hover {
  color: #004170;
}

@media (max-width: 640px) {
  .tp-fig-ms__head {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .tp-fig-ms__title {
    grid-column: 1;
  }

  .tp-fig-ms__sched-link {
    grid-column: 1;
    justify-self: center;
  }
}

.tp-fig-ms__cards {
  display: grid;
  gap: 16px;
  align-items: stretch;
  grid-template-columns: 1fr;
  align-self: stretch;
  width: 100%;
}

@container tpfigms (min-width: 480px) {
  .tp-fig-ms__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container tpfigms (min-width: 720px) {
  .tp-fig-ms__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Четыре карточки в одном ряду при достаточной ширине блока */
@container tpfigms (min-width: 880px) {
  .tp-fig-ms__cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.tp-fig-ms-card {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px 6px 6px;
  background: #f0f3f5;
  border-radius: 12px;
}

a.tp-fig-ms-card {
  text-decoration: none;
  color: inherit;
}

a.tp-fig-ms-card:focus-visible {
  outline: 2px solid #037cbd;
  outline-offset: 2px;
}

.tp-fig-ms-card__teams {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.tp-fig-ms-card__team-row {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.tp-fig-ms-card__crest {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.tp-fig-ms-card__crest img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tp-fig-ms-card__crest-ph {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8ecf0 0%, #f7f9fb 100%);
}

.tp-fig-ms-card__name {
  margin: 0;
  flex: 1 1 0;
  min-width: 0;
  color: #252a2f;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tp-fig-ms-card__mid {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 56px;
}

.tp-fig-ms-card__sc {
  text-align: center;
  color: #037cbd;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.tp-fig-ms-card__meta {
  text-align: center;
  color: #6c757b;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.tp-fig-ms-card__slot[hidden] {
  display: none !important;
}

.tp-fig-ms-card__clock {
  display: block;
  font-variant-numeric: tabular-nums;
}

.tp-fig-ms-card__clock[hidden] {
  display: none !important;
}

/* Partners placeholder */
.tp-fig-partners-empty {
  margin: 0;
  font-size: 15px;
  line-height: 22px;
  color: var(--fig-rule-lbl);
}

.tp-fig-block--partners {
  padding-bottom: 8px;
}

/* Колонка под основной белой карточкой: между карточками виден #F7F8FA (как в Figma между блоками) */
.tp-fig-stack--split {
  margin-top: 40px;
}

@media (min-width: 768px) {
  .tp-fig-stack--split {
    margin-top: 48px;
  }
}

/* Bottom: карточка организатора над блоком «место проведения» */
.tp-fig-bottom {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}

.tp-fig-panel {
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--fig-line);
  padding: 20px;
  box-sizing: border-box;
}

.tp-fig-contact-strip {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.tp-fig-contact-head {
  /* Как сводка «Сегодня» у тренера/спортсмена (.trainer-dash-tile--hero), но справа налево: светло-синий → серый */
  background: linear-gradient(to left, #e9f5fa 0%, #edf5fa 14%, #f2f6fa 32%, #f7f8fa 65%, #f9fafd 100%);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

@media (min-width: 560px) {
  .tp-fig-contact-head {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
  }
}

.tp-fig-contact-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

@media (min-width: 560px) {
  .tp-fig-contact-avatar {
    width: 160px;
    height: 160px;
  }
}

.tp-fig-contact-avatar--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dbeafe;
  font-size: 40px;
  font-weight: 700;
  color: var(--fig-tab-active);
}

.tp-fig-contact-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fig-muted);
}

.tp-fig-contact-name {
  margin: 0 0 20px;
  font-size: 28px;
  line-height: 36px;
  font-weight: 600;
  color: var(--fig-body);
}

@media (min-width: 560px) {
  .tp-fig-contact-name {
    font-size: 32px;
    line-height: 40px;
  }
}

.tp-fig-contact-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 480px) {
  .tp-fig-contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tp-fig-contact-lbl {
  display: block;
  font-size: 12px;
  line-height: 16px;
  color: var(--fig-muted);
  margin-bottom: 4px;
}

.tp-fig-contact-val {
  font-size: 15px;
  line-height: 22px;
  color: var(--fig-body);
  word-break: break-word;
}

a.tp-fig-contact-val {
  color: var(--fig-link);
  text-decoration: none;
}

a.tp-fig-contact-val:hover {
  text-decoration: underline;
}

/* Feedback */
.tp-fig-feedback-title {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--fig-navy);
}

.tp-fig-form {
  margin: 0;
}

.tp-fig-form__row3 {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.tp-fig-form__cell {
  flex: 1 1 0;
  min-width: 0;
}

.tp-fig-field-row {
  margin-bottom: 16px;
}

.tp-fig-field-row--message {
  margin-bottom: 0;
}

.tp-fig-form__message-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.tp-fig-form__message-meta .tp-fig-counter {
  margin: 0;
  text-align: left;
  flex: 1 1 auto;
  min-width: 0;
}

.tp-fig-btn--submit {
  flex-shrink: 0;
  width: auto;
}

.tp-fig-label {
  display: block;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--fig-body);
  margin-bottom: 8px;
}

.tp-fig-req {
  color: var(--fig-link);
}

.tp-fig-field,
.tp-fig-form input[type="text"],
.tp-fig-form input[type="email"],
.tp-fig-form input[type="tel"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--fig-line);
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
}

.tp-fig-form textarea,
textarea.tp-fig-field {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--fig-line);
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  min-height: 120px;
  resize: vertical;
}

.tp-fig-field--area {
  min-height: 140px;
}

.tp-fig-counter {
  margin: 6px 0 0;
  text-align: right;
  font-size: 12px;
  color: var(--fig-muted);
}

.tp-fig-err {
  margin: 6px 0 0;
  font-size: 13px;
  color: #b91c1c;
}

/* Map panel */
.tp-fig-map-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  min-height: 200px;
}

@media (min-width: 640px) {
  .tp-fig-map-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.tp-fig-map-el {
  width: 100%;
  height: 280px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--fig-line);
}

.tp-fig-map-el--embed {
  padding: 0;
  background: #e8ecf0;
}

.tp-fig-map-iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
}

.tp-fig-map-el--ph {
  background: linear-gradient(160deg, #e8ecf0, #f4f6f8);
}

.tp-fig-map-kicker {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 20px;
  color: var(--fig-muted);
  text-transform: none;
}

.tp-fig-map-title {
  margin: 0 0 16px;
  font-size: 28px;
  line-height: 36px;
  font-weight: 600;
  color: var(--fig-body);
}

@media (min-width: 640px) {
  .tp-fig-map-title {
    font-size: 32px;
    line-height: 40px;
  }
}

.tp-fig-map-addr-lbl {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--fig-muted);
}

.tp-fig-map-addr {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--fig-body);
}

.tp-fig-map-note {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--fig-rule-lbl);
}

/* Вкладка «Команды»: до 4 карточек в ряд (адаптивно 1 → 2 → 4) */
.tp-fig-teams-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 420px) {
  .tp-fig-teams-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .tp-fig-teams-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.tp-fig-team-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  margin: 0;
  background: #fff;
  border: 1px solid var(--fig-line);
  border-radius: 12px;
  overflow: hidden;
  box-sizing: border-box;
}

.tp-fig-team-card__crest {
  flex-shrink: 0;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
  background: transparent;
  display: block;
  overflow: hidden;
}

.tp-fig-team-card__crest img,
.tp-fig-team-card__crest-ph {
  width: 100%;
  max-width: none;
  margin: 0;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 12px;
  box-sizing: border-box;
}

.tp-fig-team-card__crest-ph {
  background: linear-gradient(135deg, #dbeafe, #e8ecf0);
}

.tp-fig-team-card__lower {
  flex: 1;
  min-width: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
}

.tp-fig-team-card__name {
  margin: 0;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  color: var(--fig-body);
  text-align: left;
  white-space: pre-line;
}

.tp-fig-team-card__divider {
  height: 0;
  margin: 12px 0;
  border: 0;
  border-top: 1px solid #eeeeee;
}

.tp-fig-team-card__coach {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.tp-fig-team-card__coach-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--fig-line);
}

.tp-fig-team-card__coach-avatar--ph {
  display: inline-block;
  background: #1a2840 url("/static/images/placeholders/man.svg") center/72% no-repeat;
  border: 0;
}

.tp-fig-team-card__coach-name {
  font-size: 15px;
  line-height: 22px;
  font-weight: 400;
  color: var(--fig-body);
  word-break: break-word;
}

.tp-fig-soon {
  margin: 0;
  padding: 48px 24px;
  text-align: center;
  font-size: 16px;
  color: var(--fig-rule-lbl);
  background: var(--fig-tab-inactive-bg);
  border-radius: 16px;
}

/* ——— Расписание: карточки матчей (прототип Figma / game preview cards) ——— */
.tp-fig-schedule {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tp-fig-schedule-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.tp-fig-schedule-empty-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.tp-fig-schedule-empty {
  margin: 0;
  padding: 32px 24px;
  text-align: center;
  font-size: 16px;
  line-height: 1.55;
  color: var(--fig-body, #64748b);
  background: var(--fig-tab-inactive-bg, #f8fafc);
  border: 1px solid var(--fig-line, #e4eaef);
  border-radius: 16px;
  max-width: 40rem;
  width: 100%;
  box-sizing: border-box;
}

/* Одна строка = один матч: слева теги + дата/площадка, справа команда — счёт — команда */
.tp-gpc {
  --tp-gpc-azure: #e9f5fa;
  --tp-gpc-sorento: #005d96;
  --tp-gpc-mouse: #f9fafd;
  --tp-gpc-line: #e4eaef;
  --tp-gpc-body: #252a2f;
  --tp-gpc-gray: #acb9c1;
  --tp-gpc-river: #037cbd;
  --tp-gpc-txt-gray: #6c757b;
  box-sizing: border-box;
  position: relative;
  width: 100%;
  max-width: 1156px;
  margin: 0 auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  outline: none;
  font-family: Inter, system-ui, sans-serif;
}

.tp-gpc:has(.tp-gpc-hit) {
  cursor: pointer;
}

.tp-gpc-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.tp-gpc-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.tp-gpc-aside {
  flex: 0 1 288px;
  min-width: min(100%, 240px);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.tp-gpc__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
}

.tp-gpc-pill {
  padding: 4px 8px;
  border-radius: 3px;
  background: var(--tp-gpc-azure);
  color: var(--tp-gpc-sorento);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.tp-gpc-pill--muted {
  background: var(--tp-gpc-azure);
  color: var(--tp-gpc-sorento);
  opacity: 0.85;
}

.tp-gpc-pill--negative {
  background: #fef2f2;
  color: #b91c1c;
  font-weight: 600;
}

.tp-gpc-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 8px;
  width: 100%;
}

.tp-gpc-meta__row {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.tp-gpc-meta__ic {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tp-gpc-meta__txt {
  color: var(--tp-gpc-gray);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  word-break: break-word;
}

.tp-gpc-board {
  flex: 1 1 280px;
  min-width: min(100%, 280px);
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 24px;
}

.tp-gpc-cell {
  flex: 1 1 0;
  min-width: 0;
  min-height: 80px;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  box-sizing: border-box;
  padding: 0;
  background: var(--tp-gpc-mouse);
  border-radius: 8px;
  border: 1px solid var(--tp-gpc-line);
  overflow: hidden;
}

.tp-gpc-cell__crest {
  position: relative;
  flex: 0 0 auto;
  align-self: stretch;
  width: auto;
  height: auto;
  min-height: 100%;
  max-width: none;
  aspect-ratio: 1 / 1;
  margin: 0;
  overflow: hidden;
  background: var(--tp-gpc-mouse);
  border-radius: 8px;
  isolation: isolate;
}

.tp-gpc-cell__crest--ph::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, #dbeafe, #e8ecf0);
}

.tp-gpc-cell__crest-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
}

.tp-gpc-cell__name {
  flex: 1 1 0;
  min-width: 0;
  align-self: center;
  padding: 12px 14px 12px 12px;
  color: var(--tp-gpc-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  word-wrap: break-word;
}

.tp-gpc-mid {
  flex: 0 0 auto;
  align-self: stretch;
  width: 100px;
  min-height: 80px;
  height: auto;
  box-sizing: border-box;
  padding: 4px 6px;
  display: grid;
  grid-auto-flow: row;
  grid-auto-rows: min-content;
  align-content: center;
  justify-items: stretch;
  row-gap: 3px;
  border-radius: 8px;
  outline: 1px solid var(--tp-gpc-line);
  outline-offset: -1px;
  background: #fff;
}

.tp-gpc-mid--live {
  row-gap: 4px;
}

.tp-gpc-mid__clock {
  text-align: center;
  color: var(--tp-gpc-txt-gray);
  font-size: 11px;
  font-weight: 500;
  line-height: 13px;
}

.tp-gpc-mid__score {
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.tp-gpc-mid__vb-sets.tp-vb-set-row {
  margin-top: 0;
  gap: 8px;
}

.tp-gpc-mid__vb-sets .tp-vb-set-pt {
  font-size: 10px;
  line-height: 12px;
  color: var(--tp-gpc-txt-gray);
}

.tp-gpc-mid__period {
  text-align: center;
  color: var(--tp-gpc-body);
  font-size: 11px;
  font-weight: 500;
  line-height: 13px;
}

.tp-gpc-mid__pen {
  text-align: center;
  color: var(--tp-gpc-gray);
  font-size: 12px;
  font-weight: 500;
  line-height: 14px;
  font-variant-numeric: tabular-nums;
}

.tp-gpc-mid--muted .tp-gpc-mid__score,
.tp-gpc-mid--void .tp-gpc-mid__score {
  color: var(--tp-gpc-gray);
}

.tp-gpc-mid--muted_main .tp-gpc-mid__score {
  color: var(--tp-gpc-gray);
}

.tp-gpc-mid--live .tp-gpc-mid__score {
  color: var(--tp-gpc-river);
}

.tp-gpc-void-info {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.tp-gpc-void-info .tp-res-legend__tip {
  left: 0;
  transform: none;
}

.tp-gpc-feed {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--tp-gpc-line);
  max-width: 100%;
}

.tp-gpc-feed__line {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.45;
  color: #475569;
}

.tp-gpc-ref-link {
  position: relative;
  z-index: 3;
  pointer-events: auto;
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--tp-gpc-river);
  text-decoration: none;
}

.tp-gpc-ref-link:hover {
  text-decoration: underline;
}

.tp-gpc--voided .tp-gpc-cell {
  opacity: 0.85;
}

.tp-gpc__tags:has(.tp-gpc-void-info) {
  align-items: center;
}

@media (max-width: 720px) {
  .tp-gpc-board {
    flex-direction: column;
  }

  .tp-gpc-mid {
    width: 100%;
    order: -1;
  }
}

/* ——— Результаты (таблица по прототипу Figma) ——— */
.tp-fig-block--results {
  padding-top: 4px;
}

/* Публичная вкладка «Награды» (разметка и классы карточек как у организатора) */
.tp-fig-block--awards {
  padding-top: 4px;
}

.tp-awards-public .organizer-awards-block__head {
  justify-content: flex-start;
}

/* Командные награды: лёгкая заливка блока команды по грейду (справа → влево) */
.tp-awards-public .organizer-award-card--team .organizer-award-main--gold {
  background: linear-gradient(to left, rgba(255, 210, 90, 0.28) 0%, rgba(255, 255, 255, 0) 52%), #fff;
}

.tp-awards-public .organizer-award-card--team .organizer-award-main--silver {
  background: linear-gradient(to left, rgba(186, 198, 214, 0.32) 0%, rgba(255, 255, 255, 0) 52%), #fff;
}

.tp-awards-public .organizer-award-card--team .organizer-award-main--bronze {
  background: linear-gradient(to left, rgba(210, 155, 110, 0.26) 0%, rgba(255, 255, 255, 0) 52%), #fff;
}

.tp-awards-public .organizer-award-card--team .organizer-award-main--special {
  background: linear-gradient(to left, rgba(120, 180, 220, 0.2) 0%, rgba(255, 255, 255, 0) 52%), #fff;
}

.tp-res-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  border-bottom: 1px solid #e4eaef;
  margin: 0 0 16px;
  padding: 0;
}

.tp-res-subtab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #252a2f;
  text-decoration: none;
  box-sizing: border-box;
}

.tp-res-subtab:hover {
  color: #037cbd;
}

.tp-res-subtab.is-active {
  color: #037cbd;
  border-radius: 0;
  border-bottom: 1px solid #037cbd;
  margin-bottom: -1px;
}

button.tp-res-subtab {
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.tp-fig-schedule-day-panel.is-hidden {
  display: none;
}

.tp-res-table--formonly {
  min-width: 1000px;
}

.tp-res-cell--formwide.tp-res-cell--form {
  flex: 1 1 560px;
  width: auto;
  min-width: 560px;
}

.tp-res-group-heading {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  color: #252a2f;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.tp-res--formonly.tp-res--groups .tp-res-group-block:first-child .tp-res-group-heading {
  margin-top: 0;
}

.tp-res {
  --tp-res-fog: #f0f3f5;
  --tp-res-line: #e4eaef;
  --tp-res-body: #252a2f;
  --tp-res-muted: #acb9c1;
  --tp-res-win: #1cb08b;
  --tp-res-loss: #e9424c;
  --tp-res-draw: #49aed6;
  --tp-res-river: #037cbd;
  color: var(--tp-res-body);
  font-size: 14px;
  line-height: 1.43;
}

.tp-res-hint {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--tp-res-muted);
  max-width: 52rem;
}

.tp-res-empty {
  margin: 0;
  font-size: 14px;
  color: var(--tp-res-muted);
}

.tp-res-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -4px;
  padding: 0 4px;
}

.tp-res-table {
  min-width: 1008px;
  display: flex;
  flex-direction: column;
}

.tp-res-row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--tp-res-line);
}

.tp-res-row--head {
  border-bottom: 1px solid var(--tp-res-line);
}

.tp-res-row--head .tp-res-cell {
  background: var(--tp-res-fog);
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: var(--tp-res-body);
}

.tp-res-row:not(.tp-res-row--head) .tp-res-cell {
  padding: 8px 12px;
  display: flex;
  align-items: center;
}

.tp-res-cell--num {
  flex: 0 0 58px;
  width: 58px;
  box-sizing: border-box;
  justify-content: center;
  text-align: center;
}

.tp-res-cell--team {
  flex: 1 1 370px;
  min-width: 370px;
  gap: 16px;
}

.tp-res--formonly .tp-res-cell--team {
  flex: 1 1 200px;
  min-width: 200px;
}

.tp-res-cell--group-title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.tp-res-cell--stat {
  flex: 0 0 40px;
  width: 40px;
  justify-content: flex-start;
  box-sizing: border-box;
}

.tp-res-cell--goals {
  flex: 0 0 80px;
  width: 80px;
  box-sizing: border-box;
}

.tp-res-cell--setpts {
  flex: 0 0 108px;
  width: 108px;
  box-sizing: border-box;
  justify-content: flex-start;
  font-variant-numeric: tabular-nums;
}

.tp-res-cell--pts {
  font-weight: 500;
}

.tp-res-cell--form {
  flex: 0 0 300px;
  width: 300px;
  box-sizing: border-box;
  min-width: 300px;
  overflow: visible;
}

.tp-res-crest {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
  background: #e8ecf0;
}

.tp-res-crest img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tp-res-crest-ph {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #dce3e8, #f2f5f7);
}

.tp-res-team-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.tp-res-form {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px;
  overflow: visible;
}

.tp-res-form__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 28px;
  padding: 4px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #fff;
}

a.tp-res-form__pill {
  text-decoration: none;
  box-sizing: border-box;
}

a.tp-res-form__pill:focus-visible {
  outline: 2px solid #037cbd;
  outline-offset: 2px;
}

.tp-res-form__pill--has-tip {
  position: relative;
  cursor: default;
}

a.tp-res-form__pill--has-tip {
  cursor: pointer;
}

.tp-res-form__tip {
  position: absolute;
  z-index: 80;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 12rem;
  max-width: min(22rem, 85vw);
  padding: 10px 12px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 18, 36, 0.12);
  border: 1px solid #e4eaef;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease, visibility 0.12s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.tp-res-form__pill--has-tip:hover .tp-res-form__tip,
.tp-res-form__pill--has-tip:focus .tp-res-form__tip,
.tp-res-form__pill--has-tip:focus-within .tp-res-form__tip {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.tp-res-form__tip--above {
  top: auto;
  bottom: calc(100% + 6px);
}

.tp-res-row:last-child .tp-res-form__pill--has-tip {
  z-index: 5;
}

.tp-res-row:last-child .tp-res-form__pill--has-tip .tp-res-form__tip:not(.tp-res-form__tip--above) {
  top: auto;
  bottom: calc(100% + 6px);
}

.tp-res-form__tip-line1 {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  color: #252a2f;
  white-space: normal;
  word-break: break-word;
}

.tp-res-form__tip-line2 {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: #acb9c1;
}

.tp-res-form--w {
  background: var(--tp-res-win);
}

.tp-res-form--l {
  background: var(--tp-res-loss);
}

.tp-res-form--d {
  background: var(--tp-res-draw);
}

.tp-res-form__pill--pending {
  min-width: 28px;
  min-height: 28px;
  box-sizing: border-box;
  padding: 4px;
  background: #dce3e8;
  border: 1px solid #c9d4dc;
  color: transparent;
}

.tp-res-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 4px 6px;
  border-radius: 4px;
  background: var(--tp-res-river);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.tp-res--groups .tp-res-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  margin-bottom: 16px;
}

.tp-res-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tp-res-legend__txt {
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: var(--tp-res-muted);
}

.tp-res-legend__item--playoff {
  position: relative;
}

.tp-res-legend__info {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 2px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: help;
  vertical-align: middle;
}

.tp-res-legend__info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e4eaef;
  color: var(--tp-res-muted, #acb9c1);
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
}

.tp-res-legend__tip {
  position: absolute;
  z-index: 90;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 14rem;
  max-width: min(22rem, 85vw);
  padding: 10px 12px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 18, 36, 0.12);
  border: 1px solid #e4eaef;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: var(--tp-res-body);
  text-align: left;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease, visibility 0.12s ease;
}

.tp-res-legend__info:hover .tp-res-legend__tip,
.tp-res-legend__info:focus .tp-res-legend__tip,
.tp-res-legend__info:focus-within .tp-res-legend__tip {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.tp-res-groups-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* —— Страница матча (Figma match info.html) —— */
.tp-mip {
  background: #f7f8fa;
  padding: 0 0 48px;
  min-height: 60vh;
  font-family: Inter, system-ui, sans-serif;
}

.tp-mip__outer {
  box-sizing: border-box;
  padding: 1.5rem 1.25rem 0;
}

.tp-mip__column {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.tp-mip-stack {
  width: 100%;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding-bottom: 24px;
  box-sizing: border-box;
}

.tp-mip-hero {
  width: 100%;
  position: relative;
  background: #004a80;
  border-radius: 16px;
  overflow: hidden;
  box-sizing: border-box;
}

.tp-mip-hero__blob {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.32;
}

.tp-mip-hero__blob--a {
  width: 420px;
  height: 380px;
  background: #00cfdc;
  top: -200px;
  right: -120px;
}

.tp-mip-hero__blob--b {
  width: 520px;
  height: 400px;
  background: #02006c;
  top: -160px;
  left: 120px;
}

/* Как .tp-fig-hero на вкладке «Описание»: моб. min-height 280px, от 768px — 360px */
.tp-mip-hero__row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  min-height: 280px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .tp-mip-hero {
    height: 360px;
  }

  .tp-mip-hero__row {
    flex-direction: row;
    height: 100%;
    min-height: 360px;
  }
}

.tp-mip-hero__cover {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.12);
  border-top-left-radius: 16px;
}

@media (max-width: 767px) {
  .tp-mip-hero__cover {
    border-top-right-radius: 16px;
  }
}

@media (min-width: 768px) {
  .tp-mip-hero__cover {
    width: 360px;
    height: 360px;
    flex: 0 0 360px;
    border-radius: 0;
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
  }
}

.tp-mip-hero__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767px) {
  .tp-mip-hero__cover img {
    min-height: 200px;
    height: auto;
  }
}

@media (min-width: 768px) {
  .tp-mip-hero__cover img {
    width: 360px;
    height: 360px;
    min-height: 0;
    max-width: none;
  }
}

.tp-mip-hero__cover-ph {
  box-sizing: border-box;
  width: 100%;
  min-height: 200px;
  background: #13243e url("/static/images/placeholders/champ.svg") center/42% no-repeat;
}

@media (min-width: 768px) {
  .tp-mip-hero__cover-ph {
    width: 360px;
    height: 360px;
    min-height: 360px;
  }
}

.tp-mip-hero__main {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  padding: 24px 20px 28px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
}

@media (min-width: 768px) {
  .tp-mip-hero__main {
    height: 100%;
    padding: 40px 48px 40px 40px;
    gap: 32px;
  }
}

@media (max-width: 767px) {
  .tp-mip-hero__main {
    padding: 24px 20px 32px;
    gap: 28px;
  }
}

.tp-mip-hero__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.tp-mip-hero__dates {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
}

.tp-mip-hero__title {
  margin: 0;
  max-width: 42rem;
  color: #fff;
  font-size: clamp(24px, 3.6vw, 40px);
  font-weight: 600;
  line-height: 1.2;
}

/* Сильнее правила main h1 из app.css (--color-navy) */
main .tp-mip-hero h1.tp-mip-hero__title {
  color: #fff;
}

.tp-mip-hero__cols {
  align-self: stretch;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
}

.tp-mip-hero__col {
  flex: 1 1 160px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tp-mip-hero__lbl {
  margin: 0;
  color: #fff;
  opacity: 0.32;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.tp-mip-hero__val {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  word-wrap: break-word;
}

.tp-mip-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tp-mip-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 12px;
  background: #ff8b00;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  text-decoration: none;
}

.tp-mip-hero__btn:hover {
  filter: brightness(1.06);
}

.tp-mip-main {
  width: 100%;
  box-sizing: border-box;
  padding: 0 20px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.tp-mip-tabs {
  align-self: stretch;
  min-height: 40px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}

.tp-mip-tab {
  flex: 1 1 120px;
  min-width: 0;
  box-sizing: border-box;
  padding: 10px 16px;
  border-radius: 8px;
  background: #f9fafd;
  color: #252a2f;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
  text-decoration: none;
}

.tp-mip-tab:hover {
  color: #037cbd;
}

.tp-mip-tab--active {
  background: #e9f5fa;
  color: #037cbd;
}

/* Контент: три колонки + мета + панель событий (match info) */
.tp-mi {
  box-sizing: border-box;
  width: 100%;
  max-width: 1112px;
  margin: 0 auto;
  font-family: Inter, system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tp-mi__board {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 28px;
  width: 100%;
  box-sizing: border-box;
}

.tp-mi__side {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  padding: 0;
  background: #f9fafd;
  border-radius: 8px;
  outline: 1px solid #e4eaef;
  outline-offset: -1px;
  overflow: hidden;
}

.tp-mi__crest {
  position: relative;
  flex: 0 0 auto;
  align-self: stretch;
  width: auto;
  height: auto;
  min-height: 100%;
  max-width: none;
  aspect-ratio: 1 / 1;
  margin: 0;
  overflow: hidden;
  background: #f9fafd;
  border-radius: 8px;
  isolation: isolate;
}

.tp-mi__crest img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

.tp-mi__crest-ph {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, #e8ecf0 0%, #f7f9fb 100%);
}

.tp-mi__side-text {
  flex: 1 1 0;
  min-width: 0;
  align-self: center;
  padding: 12px 14px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

@media (min-width: 640px) {
  .tp-mi__side-text {
    padding: 16px 20px;
  }
}

.tp-mi__team-name {
  margin: 0;
  color: #252a2f;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  word-wrap: break-word;
}

@media (min-width: 640px) {
  .tp-mi__team-name {
    font-size: 20px;
    line-height: 20px;
  }
}

.tp-mi__mid {
  flex: 0 0 auto;
  align-self: stretch;
  width: 124px;
  min-width: 112px;
  max-width: 148px;
  min-height: 0;
  box-sizing: border-box;
  padding: 12px 10px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  outline: 1px solid #e4eaef;
  outline-offset: -1px;
  background: #fff;
}

@media (min-width: 640px) {
  .tp-mi__mid {
    width: 136px;
    max-width: 160px;
    padding: 14px 12px;
    margin: 0;
  }
}

.tp-mi__mid-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  min-height: 44px;
}

.tp-mi__slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #6c757b;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.tp-mi__slot[hidden] {
  display: none !important;
}

.tp-mi__clock {
  display: block;
  color: #6c757b;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}

.tp-mi__clock[hidden] {
  display: none !important;
}

.tp-mi__score {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: center;
  gap: 0;
  width: 100%;
  text-align: center;
  color: #037cbd;
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .tp-mi__score {
    font-size: 40px;
    line-height: 48px;
  }
}

.tp-mi--scheduled .tp-mi__score {
  color: #acb9c1;
}

.tp-mi--finished .tp-mi__score {
  color: #037cbd;
}

.tp-mi__score-sep {
  font-weight: 600;
}

.tp-mi__pen {
  margin: 0;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  line-height: 14px;
  color: #6c757b;
  font-variant-numeric: tabular-nums;
}

.tp-mi__period {
  margin: 0;
  text-align: center;
  color: #252a2f;
  font-size: 13px;
  font-weight: 500;
  line-height: 15px;
}

.tp-mi--live .tp-mi__period {
  color: #252a2f;
}

.tp-mi__void-hint {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.tp-mi-void-info {
  position: relative;
  z-index: 2;
}

.tp-mi-pitch {
  width: 100%;
  min-height: 200px;
  box-sizing: border-box;
  padding: 12px 14px 20px;
  background: #e9f5fa;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.tp-mi-pitch__halves {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px 8px;
  max-width: 100%;
}

.tp-mi-pitch__half {
  flex: 1 1 0;
  text-align: center;
  color: #acb9c1;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.tp-mi-pitch__half:first-child {
  text-align: left;
  padding-left: 4px;
}

.tp-mi-pitch__half:last-child {
  text-align: right;
  padding-right: 4px;
}

.tp-mi-pitch__bar {
  height: 2px;
  margin: 0 0 16px;
  background: #e4eaef;
  border-radius: 1px;
}

.tp-mi-pitch__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tp-mi-pitch__li {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #252a2f;
}

.tp-mi-pitch__min {
  flex-shrink: 0;
  min-width: 32px;
  padding: 4px 6px;
  border-radius: 100px;
  background: #fff;
  outline: 2px solid #e9f5fa;
  outline-offset: -2px;
  text-align: center;
  color: #6c757b;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  font-variant-numeric: tabular-nums;
}

.tp-mi-pitch__txt {
  flex: 1 1 0;
  min-width: 0;
  word-wrap: break-word;
}

.tp-mi-pitch__empty {
  margin: 8px 0 0;
  padding: 8px 4px 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #6c757b;
  text-align: center;
}

/* Блок «Судья / Стадион» внизу карточки матча (Figma match info block) */
.tp-mi-foot {
  box-sizing: border-box;
  align-self: stretch;
  width: 100%;
}

.tp-mi-foot__bar {
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 40px;
  padding: 24px;
  background: #f9fafd;
  border-radius: 8px;
  overflow: hidden;
}

.tp-mi-foot__col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.tp-mi-foot__ic {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tp-mi-foot__ic svg {
  display: block;
}

.tp-mi-foot__stack {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.tp-mi-foot__lbl {
  width: 62px;
  color: #acb9c1;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  word-wrap: break-word;
}

.tp-mi-foot__val {
  align-self: stretch;
  color: #252a2f;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  word-wrap: break-word;
}

.tp-mi-foot__sep {
  flex-shrink: 0;
  width: 1px;
  align-self: stretch;
  min-height: 48px;
  background: #e4eaef;
}

@media (max-width: 639px) {
  .tp-mi__board {
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
  }

  .tp-mi__mid {
    order: -1;
    flex: 1 1 100%;
    width: 100%;
    margin: 0;
  }

  .tp-mi__side {
    flex: 1 1 calc(50% - 6px);
    min-width: min(100%, 200px);
    min-height: 88px;
  }

}

/* Таймлайн матча (макет timeline.html): #E9F5FA, команды 240×88, линия #E4EAEF, A над осью / B под осью */
.tp-mi-tl {
  box-sizing: border-box;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  background: #e9f5fa;
  border-radius: 8px;
  overflow: visible;
  font-family: Inter, system-ui, sans-serif;
}

.tp-mi-tl-inner {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  grid-template-rows: 88px 2px 88px;
  column-gap: 16px;
  padding: 12px;
  box-sizing: border-box;
  min-height: 200px;
  align-items: stretch;
}

.tp-mi-tl-team--a {
  grid-column: 1;
  grid-row: 1;
}

.tp-mi-tl-track {
  --tp-mi-tl-half-split: calc(50% - 10px);
  grid-column: 2;
  grid-row: 1 / span 3;
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 178px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 88px 2px 88px;
  isolation: isolate;
}

.tp-mi-tl-vline {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e4eaef;
  pointer-events: none;
  z-index: 0;
}

.tp-mi-tl-vline--l,
.tp-mi-tl-vline--c {
  grid-column: 1;
  grid-row: 1 / span 3;
}

.tp-mi-tl-vline--l {
  left: 0;
}

.tp-mi-tl-vline--c {
  left: var(--tp-mi-tl-half-split);
  transform: translateX(-1px);
}

.tp-mi-tl-labels {
  display: grid;
  grid-template-columns: var(--tp-mi-tl-half-split) minmax(0, 1fr);
  align-items: center;
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  padding: 0 0 4px;
  position: relative;
  z-index: 2;
}

.tp-mi-tl-half {
  color: #acb9c1;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.tp-mi-tl-half--2 {
  justify-self: end;
  text-align: right;
}

.tp-mi-tl-ax {
  display: contents;
}

.tp-mi-tl-slice {
  position: relative;
  min-height: 0;
  z-index: 1;
}

.tp-mi-tl-slice--a {
  grid-column: 1;
  grid-row: 1;
}

.tp-mi-tl-slice-mid {
  grid-column: 1;
  grid-row: 2;
  height: 2px;
  background: #e4eaef;
  pointer-events: none;
  z-index: 1;
}

.tp-mi-tl-slice--b {
  grid-column: 1;
  grid-row: 3;
}

.tp-mi-tl-overlay {
  grid-column: 1;
  grid-row: 1 / -1;
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  min-height: 0;
  min-width: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}

.tp-mi-tl-node {
  pointer-events: auto;
  position: absolute;
  top: 0;
  height: 100%;
  width: 56px;
  margin-left: -28px;
  z-index: 2;
}

.tp-mi-tl-node__hinge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 56px;
}

.tp-mi-tl-hinge-stack {
  position: relative;
  display: inline-block;
  vertical-align: top;
}

.tp-mi-tl-bul {
  box-sizing: border-box;
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin: 0;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(37, 42, 47, 0.12);
  background: #fff;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.tp-mi-tl-bul:hover,
.tp-mi-tl-bul:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 2px 8px rgba(37, 42, 47, 0.18);
  outline: none;
}

.tp-mi-tl-bul--goal {
  background: #fff;
  border: 1px solid #acb9c1;
  color: #6c757b;
}

.tp-mi-tl-bul__min {
  display: block;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

.tp-mi-tl-axis-soccer,
.tp-mi-tl-axis-card {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  line-height: 0;
  pointer-events: none;
  z-index: 4;
}

.tp-mi-tl-node--a .tp-mi-tl-axis-soccer,
.tp-mi-tl-node--a .tp-mi-tl-axis-card {
  bottom: calc(100% + 10px);
}

.tp-mi-tl-node--b .tp-mi-tl-axis-soccer,
.tp-mi-tl-node--b .tp-mi-tl-axis-card {
  top: calc(100% + 10px);
}

.tp-mi-tl-bul--yellow,
.tp-mi-tl-bul--red {
  background: #fff;
}

.tp-mi-tl-bul--yellow {
  border: 2px solid #ffcd00;
}

.tp-mi-tl-bul--red {
  border: 2px solid #e9424c;
}

.tp-mi-tl-bul__ic {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.tp-mi-tl-pop {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  min-width: 140px;
  max-width: min(320px, 72vw);
  padding: 6px 10px;
  background: #fff;
  border: 1px solid #e4eaef;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(37, 42, 47, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 20;
  box-sizing: border-box;
}

.tp-mi-tl-node--a .tp-mi-tl-pop {
  bottom: calc(100% + 10px);
  top: auto;
}

.tp-mi-tl-node--b .tp-mi-tl-pop {
  top: calc(100% + 10px);
  bottom: auto;
}

.tp-mi-tl-node:hover .tp-mi-tl-pop,
.tp-mi-tl-node:focus-within .tp-mi-tl-pop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.tp-mi-tl-pop__row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.tp-mi-tl-pop__av {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e4eaef;
  background: #f4f6f8;
}

.tp-mi-tl-pop__av--ph {
  display: inline-block;
  box-sizing: border-box;
  border: 1px solid #e4eaef;
  background: #e9eef2;
}

.tp-mi-tl-pop__txt {
  flex: 1 1 auto;
  min-width: 0;
  color: #252a2f;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
  grid-column: 1 / -1;
  grid-row: 2;
  height: 2px;
  background: #e4eaef;
  position: relative;
  z-index: 0;
  align-self: center;
}

.tp-mi-tl-team--b {
  grid-column: 1;
  grid-row: 3;
}

.tp-mi-tl-team {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  max-width: 240px;
  height: 88px;
  box-sizing: border-box;
  border-radius: 8px;
  overflow: hidden;
}

.tp-mi-tl-crest {
  flex-shrink: 0;
  align-self: center;
  width: 66px;
  height: 66px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #f7f9fb;
}

.tp-mi-tl-crest img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tp-mi-tl-crest-ph {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, #e8ecf0 0%, #f7f9fb 100%);
}

.tp-mi-tl-team-txt {
  flex: 1 1 0;
  min-width: 0;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  box-sizing: border-box;
}

.tp-mi-tl-team-name {
  color: #252a2f;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  word-wrap: break-word;
}

.tp-mi-tl-empty {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757b;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  pointer-events: none;
}

.tp-mi-tl-empty--a {
  padding-bottom: 8px;
}

.tp-mi-tl-empty--b {
  padding-top: 8px;
}

@media (max-width: 639px) {
  .tp-mi-tl-inner {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 1fr);
    column-gap: 8px;
    padding: 8px;
  }

  .tp-mi-tl-team {
    max-width: none;
  }

  .tp-mi-tl-pop {
    max-width: min(280px, 85vw);
  }

  .tp-mi-tl-pop__txt {
    max-width: 200px;
  }
}

/* Статистика по таймам (макет stats.html): голы, карточки; A слева / B справа; фон строк — зебра по порядку */
.tp-ms {
  box-sizing: border-box;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-family: Inter, system-ui, sans-serif;
}

.tp-ms-sec {
  align-self: stretch;
  width: 100%;
  background: #f7f8fa;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tp-ms-sec__head {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  background: #e4eaef;
}

.tp-ms-sec__head-cell {
  flex: 1 1 0;
  box-sizing: border-box;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #252a2f;
}

.tp-ms-sec__head-cell--left {
  justify-content: flex-start;
  gap: 10px;
}

.tp-ms-sec__head-cell--right {
  justify-content: flex-end;
  text-align: right;
}

.tp-ms-row {
  box-sizing: border-box;
  width: 100%;
  padding: 8px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.tp-ms-row--a {
  justify-content: flex-start;
}

.tp-ms-row--b {
  justify-content: flex-end;
}

.tp-ms-row--stripe-light {
  background: #fff;
}

.tp-ms-row--stripe-muted {
  background: #eceff2;
}

.tp-ms-min {
  flex-shrink: 0;
  color: #252a2f;
}

.tp-ms-badge {
  flex-shrink: 0;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  outline: 1px solid #e4eaef;
  outline-offset: -1px;
}

.tp-ms-badge--card {
  padding: 6px 8px;
}

.tp-ms-badge__score {
  color: #252a2f;
}

.tp-ms-ico {
  position: relative;
  display: block;
  flex-shrink: 0;
  overflow: hidden;
}

.tp-ms-ico--ball {
  width: 16px;
  height: 16px;
}

.tp-ms-ico--card {
  width: 20px;
  height: 20px;
}

.tp-ms-ico--card svg {
  position: absolute;
  left: 2px;
  top: 2px;
}

.tp-ms-names {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  min-width: 0;
}

.tp-ms-names--b {
  justify-content: flex-end;
}

.tp-ms-pri {
  color: #252a2f;
}

.tp-ms-asis {
  padding-left: 6.86px;
  color: #6c757b;
}

/* Карточка «Anounce date» в Figma: колонка команд фикс. 192px */
.tp-fig-ms-card--announce .tp-fig-ms-card__teams {
  flex: 0 0 192px;
  width: 192px;
  max-width: min(192px, 46vw);
}

@media (max-width: 400px) {
  .tp-fig-ms-card--announce .tp-fig-ms-card__teams {
    flex: 1 1 0;
    width: auto;
    max-width: none;
  }
}

.tp-fig-ms-card__pen {
  margin: 2px 0 0;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  line-height: 14px;
  color: #6c757b;
  font-variant-numeric: tabular-nums;
}

.tp-gpc:has(.tp-gpc-hit):focus-within {
  outline: 2px solid #037cbd;
  outline-offset: 2px;
}

/* ——— Завершённый турнир: вкладка «Описание» (макет finish screen) ——— */
.tp-fig-hero--finished {
  border-radius: 16px;
}

@media (min-width: 768px) {
  .tp-fig-hero--finished {
    height: 352px;
    min-height: 352px;
  }

  .tp-fig-hero--finished .tp-fig-hero__row {
    min-height: 352px;
    height: 352px;
  }

  .tp-fig-hero--finished .tp-fig-hero__media {
    width: 352px;
    height: 352px;
    border-radius: 16px 0 0 16px;
  }

  .tp-fig-hero--finished .tp-fig-hero__img,
  .tp-fig-hero--finished .tp-fig-hero__img--ph {
    width: 352px;
    height: 352px;
    min-height: 352px;
  }
}

.tp-fig-hero__dates {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
  font-weight: 400;
  color: #fff;
}

.tp-fig-hero--finished .tp-fig-hero__main {
  gap: 32px;
}

.tp-fig-hero__cols--3 {
  display: grid;
  gap: 16px 24px;
  grid-template-columns: 1fr;
  width: 100%;
  max-width: none;
}

.tp-fig-hero__col--date {
  flex-direction: column;
  gap: 8px;
}

.tp-fig-hero__col--date .tp-fig-hero__val {
  white-space: nowrap;
}

@media (min-width: 640px) {
  .tp-fig-hero__cols--3 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    column-gap: 20px;
  }

  .tp-fig-hero__col--date {
    margin-left: -12px;
  }
}

.tp-finish-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
}

.tp-finish-block + .tp-finish-block {
  margin-top: 0;
}

/* На вкладке «Описание» (завершён) — единый ритм отступов как у .tp-fig-shell__inner */
.tp-fig-shell__inner:has(.tp-finish-block) {
  gap: 32px;
}

.tp-finish-h2 {
  margin: 0;
  width: 100%;
  text-align: center;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  text-transform: uppercase;
  color: #004170;
  letter-spacing: 0.02em;
}

.tp-finish-h2-left {
  margin: 0;
  width: 100%;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  color: #252a2f;
}

.tp-finish-rules {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  width: 100%;
}

.tp-finish-rule-card {
  flex: 1 1 280px;
  max-width: 100%;
  background: #f7f8fa;
  border-radius: 16px;
  overflow: hidden;
}

.tp-finish-rule-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: #fff;
}

.tp-finish-rule-row--alt {
  background: #f7f8fa;
}

.tp-finish-rule-lbl {
  font-size: 14px;
  line-height: 20px;
  color: #6c757b;
}

.tp-finish-rule-val {
  font-size: 14px;
  line-height: 20px;
  color: #252a2f;
  text-align: right;
}

.tp-finish-block--files {
  align-items: stretch;
  gap: 24px;
}

.tp-finish-files {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.tp-finish-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f9fafd;
  border-radius: 8px;
  color: #252a2f;
  text-decoration: none;
  transition: background 0.15s ease;
}

.tp-finish-file:hover {
  background: #e9f5fa;
}

.tp-finish-file__icon {
  flex-shrink: 0;
  color: #acb9c1;
}

.tp-finish-file__name {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.tp-finish-block--results {
  padding: 0;
  overflow: visible;
  gap: 24px;
}

/* Командные → индивидуальные награды: плотнее, без двойного зазора */
.tp-finish-block--results + .tp-finish-block--ind {
  margin-top: -8px;
}

.tp-finish-block--ind {
  gap: 0;
  padding-top: 0;
}

/*
 * Вымпел (пьедестал): верх — r40 (без изменений); низ — вытянутый «хвост» с мягким закруглённым кончиком.
 */
.tp-finish-pennant--podium {
  --tp-pennant-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 248 750' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M40 0h168a40 40 0 0 1 40 40V668L132 742Q124 750 116 742L0 668V40a40 40 0 0 1 40-40z'/%3E%3C/svg%3E");
  position: relative;
  width: 100%;
  box-sizing: border-box;
  -webkit-mask-image: var(--tp-pennant-mask);
  mask-image: var(--tp-pennant-mask);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  filter: drop-shadow(0 2px 8px rgba(0, 18, 36, 0.07));
}

.tp-finish-pennant {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.tp-finish-pennant--gold {
  background: linear-gradient(180deg, #998100 0%, #ffd700 100%);
}

.tp-finish-pennant--silver {
  background: linear-gradient(180deg, #5a5a5a 0%, #c0c0c0 100%);
}

.tp-finish-pennant--bronze {
  background: linear-gradient(180deg, #685039 0%, #ce9f71 100%);
}

.tp-finish-pennant--ind {
  --tp-pennant-mask-ind: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 248 320' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M32 0h184a28 28 0 0 1 28 28V285L132 317Q124 320 116 317L0 285V28a28 28 0 0 1 28-28z'/%3E%3C/svg%3E");
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 248px;
  max-width: 100%;
  height: 380px;
  min-height: 380px;
  max-height: 380px;
  margin: 0 auto;
  padding: 22px 16px 58px;
  box-sizing: border-box;
  overflow: hidden;
  background: linear-gradient(180deg, #6eb5dc 0%, #a8d4ef 42%, #e9f5fa 100%);
  color: #004170;
  -webkit-mask-image: var(--tp-pennant-mask-ind);
  mask-image: var(--tp-pennant-mask-ind);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  filter: drop-shadow(0 2px 8px rgba(0, 74, 128, 0.08));
}

.tp-finish-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(10px, 2vw, 20px);
  width: 100%;
  max-width: 100%;
  overflow: visible;
  padding: 6px 8px 12px;
}

.tp-finish-podium-card {
  flex: 1 1 0;
  min-width: 0;
  max-width: 248px;
  width: min(248px, calc((100% - 2 * clamp(10px, 2vw, 20px)) / 3));
  color: #fff;
}

.tp-finish-podium-card--gold {
  align-self: flex-end;
}

.tp-finish-podium-card--bronze {
  align-self: flex-end;
  margin-bottom: 40px;
}

/* 2-е место — между золотом (выше) и бронзой (ниже) */
.tp-finish-podium-card--silver {
  align-self: flex-end;
  margin-bottom: 40px;
}

.tp-finish-pennant--podium.tp-finish-pennant--silver,
.tp-finish-pennant--podium.tp-finish-pennant--bronze {
  height: 660px;
  min-height: 660px;
  max-height: 660px;
}

.tp-finish-pennant--podium.tp-finish-pennant--gold {
  height: 740px;
  min-height: 740px;
  max-height: 740px;
}

.tp-finish-podium-card__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 26px 14px 88px;
  text-align: center;
  height: 100%;
  min-height: inherit;
  box-sizing: border-box;
  overflow: hidden;
}

.tp-finish-podium-card__footer {
  flex: 0 0 auto;
  width: 100%;
  max-width: 208px;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 4px;
}

.tp-finish-podium-card__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  width: 200px;
}

.tp-finish-podium-card__place {
  margin: 0;
  font-size: 32px;
  line-height: 40px;
  font-weight: 600;
}

.tp-finish-podium-card__place-sub {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  opacity: 0.5;
}

.tp-finish-podium-card__crest-wrap {
  width: 176px;
  height: 176px;
  box-sizing: border-box;
  flex-shrink: 0;
  border: 8px solid #fff;
  border-radius: 50%;
  overflow: hidden;
  aspect-ratio: 1;
}

.tp-finish-podium-card__crest {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.tp-finish-podium-card__crest--ph {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #f7f8fa;
}

.tp-finish-podium-card__medal {
  width: 180px;
  height: 180px;
  max-width: 100%;
  flex-shrink: 1;
  object-fit: contain;
}

.tp-finish-podium-card__medal--ph {
  display: block;
  width: 180px;
  height: 180px;
  max-width: 100%;
  flex-shrink: 1;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
}

.tp-finish-podium-card__team {
  margin: 0;
  width: 100%;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
  min-height: calc(2 * 1.3 * 22px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  word-break: break-word;
  hyphens: auto;
}

.tp-finish-podium-card__stats {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 24px;
  flex-shrink: 0;
  width: 100%;
}

.tp-finish-podium-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.tp-finish-podium-stat__v {
  font-size: 24px;
  line-height: 28px;
  font-weight: 600;
}

.tp-finish-podium-stat__k {
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.tp-finish-ind-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 248px));
  justify-content: center;
  gap: 32px 40px;
  width: 100%;
  overflow: visible;
  padding: 6px 8px 4px;
}

.tp-finish-ind-row--single {
  grid-template-columns: minmax(0, 248px);
}

.tp-finish-ind-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 248px;
  max-width: 100%;
  justify-self: center;
}

.tp-finish-ind-card:nth-child(3) {
  grid-column: 1 / -1;
}

.tp-finish-ind-card__titles {
  text-align: center;
  width: 100%;
}

.tp-finish-ind-card__kicker {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  text-transform: uppercase;
  color: #004170;
  opacity: 0.55;
}

.tp-finish-ind-card__award-name {
  margin: 4px 0 0;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  color: #004170;
  text-transform: uppercase;
}

.tp-finish-ind-card__photo {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 12px;
  flex-shrink: 0;
}

.tp-finish-ind-card__avatar-wrap {
  width: 128px;
  height: 128px;
  border-radius: 100px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 4px #fff;
}

.tp-finish-ind-card__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tp-finish-ind-card__avatar--ph {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #e9f5fa, #d0dee8);
}

.tp-finish-ind-card__goals-badge {
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  padding: 10px 12px;
  min-width: 44px;
  text-align: center;
  background: #001224;
  border-radius: 8px;
  color: #fff;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  z-index: 1;
}

.tp-finish-ind-card__person {
  margin-top: auto;
  padding-top: 10px;
  text-align: center;
  width: 100%;
  flex-shrink: 0;
}

.tp-finish-ind-card__name {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 500;
  color: #004170;
  min-height: calc(2 * 1.3 * 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  word-break: break-word;
}

.tp-finish-ind-card__position {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 20px;
  color: #004170;
  opacity: 0.65;
}

@media (max-width: 860px) {
  .tp-finish-podium {
    gap: 8px;
    padding-bottom: 16px;
  }

  .tp-finish-podium-card {
    width: min(248px, calc((100% - 16px) / 3));
  }

  .tp-finish-pennant--podium.tp-finish-pennant--silver,
  .tp-finish-pennant--podium.tp-finish-pennant--bronze {
    height: 540px;
    min-height: 540px;
    max-height: 540px;
  }

  .tp-finish-pennant--podium.tp-finish-pennant--gold {
    height: 600px;
    min-height: 600px;
    max-height: 600px;
  }

  .tp-finish-podium-card--silver {
    margin-bottom: 30px;
  }

  .tp-finish-podium-card--bronze {
    margin-bottom: 30px;
  }

  .tp-finish-podium-card__inner {
    gap: 12px;
    padding: 20px 10px 72px;
  }

  .tp-finish-podium-card__footer {
    max-width: 100%;
    gap: 10px;
  }

  .tp-finish-podium-card__team {
    font-size: 18px;
    min-height: calc(2 * 1.3 * 18px);
  }

  .tp-finish-podium-stat__v {
    font-size: 20px;
    line-height: 24px;
  }

  .tp-finish-podium-card__crest-wrap {
    width: 140px;
    height: 140px;
    border-width: 6px;
  }

  .tp-finish-podium-card__crest,
  .tp-finish-podium-card__crest--ph {
    width: 100%;
    height: 100%;
  }

  .tp-finish-podium-card__medal {
    width: 160px;
    height: 160px;
  }

  .tp-finish-podium-card__medal--ph {
    width: 160px;
    height: 160px;
  }

  .tp-finish-podium-card__place {
    font-size: 26px;
    line-height: 32px;
  }

  .tp-finish-podium-card__team {
    font-size: 20px;
    line-height: 24px;
  }

  .tp-finish-ind-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .tp-finish-ind-card:nth-child(3) {
    grid-column: auto;
  }

  .tp-finish-pennant--ind {
    height: 340px;
    min-height: 340px;
    max-height: 340px;
    padding: 18px 12px 52px;
  }

  .tp-finish-ind-card__avatar-wrap {
    width: 112px;
    height: 112px;
  }

  .tp-finish-ind-card__award-name {
    font-size: 20px;
    line-height: 26px;
  }

  .tp-finish-ind-card__name {
    font-size: 18px;
    min-height: calc(2 * 1.3 * 18px);
  }
}

/* --- Поп-ап команды (вкладка «Команды») --- */

.tp-fig-team-card--clickable {
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.tp-fig-team-card--clickable:hover {
  box-shadow: 0 8px 24px rgba(0, 43, 73, 0.12);
  transform: translateY(-2px);
}

.tp-fig-team-card--clickable:focus-visible {
  outline: 2px solid #037cbd;
  outline-offset: 2px;
}

.tp-team-modal-shell {
  z-index: 1260;
}

.tp-team-modal-shell .training-modal-shell__panel,
.tp-team-modal-shell__panel {
  width: 100%;
  max-width: min(960px, 96vw);
  max-height: min(92vh, 900px);
  overflow: auto;
}

.tp-team-modal-inner {
  padding: 0 1.25rem 1.5rem;
}

.tp-team-modal__toolbar {
  display: flex;
  justify-content: flex-end;
  padding: 0.75rem 0 0.25rem;
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
}

.tp-team-modal__hero {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.tp-team-modal__crest {
  flex-shrink: 0;
}

.tp-team-modal__crest img,
.tp-team-modal__crest-ph {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

.tp-team-modal__crest-ph {
  background: #1a2840 url("/static/images/placeholders/man.svg") center/68% no-repeat;
}

.tp-team-modal__hero-body {
  flex: 1;
  min-width: 0;
}

.tp-team-modal-inner .trainer-avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: inline-block;
}

.tp-team-modal-inner .trainer-avatar-sm.placeholder {
  background: #1a2840 url("/static/images/placeholders/man.svg") center/72% no-repeat;
}

.tp-team-modal-inner .spd-team-staff__photo--empty {
  background: #1a2840 url("/static/images/placeholders/man.svg") center/72% no-repeat;
}

.tp-team-modal__name {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #002b49;
}

.tp-team-modal__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.tp-team-modal__tags .team-tag--school {
  background: #e0f0ff;
  color: #0b4a6e;
  text-decoration: none;
}

.tp-team-modal__tags a.team-tag--school:hover {
  background: #cce5ff;
  color: #083552;
}

.tp-team-modal__stats {
  margin-top: 0.65rem;
}

.tp-team-modal__section-title {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 600;
  color: #002b49;
}

.tp-team-modal__anim {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  margin-bottom: 1.35rem;
}

.tp-team-modal__anim.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tp-team-modal__staff .spd-team-staff {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.tp-team-modal-inner .spd-team-formation {
  margin-bottom: 1.5rem;
}

.tp-team-modal-inner .formation-showcase__frame {
  max-width: none;
}

.tp-team-modal-inner .spd-team-kits {
  margin-bottom: 0;
}

.tp-team-modal__awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

@media (max-width: 640px) {
  .tp-team-modal__hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .tp-team-modal__stats {
    justify-content: center;
  }
}

/* --- Volleyball match page: единая высота блоков (запланирован / live / завершён) --- */
.tp-mi--volleyball .tp-vb-board {
  align-items: stretch;
  gap: 24px;
}

.tp-mi--volleyball .tp-mi__side {
  flex: 1 1 0;
  height: 124px;
  min-height: 124px;
  max-height: 124px;
}

.tp-mi--volleyball .tp-mi__crest {
  flex: 0 0 124px;
  width: 124px;
  min-width: 124px;
  max-width: 124px;
  height: 124px;
  min-height: 124px;
  max-height: 124px;
  aspect-ratio: auto;
  align-self: stretch;
}

.tp-mi--volleyball .tp-mi__side-text {
  align-self: center;
  padding: 10px 14px;
}

.tp-mi--volleyball .tp-mi__mid {
  box-sizing: border-box;
  flex: 0 0 132px;
  width: 132px;
  min-width: 132px;
  max-width: 132px;
  height: 124px;
  min-height: 124px;
  max-height: 124px;
  padding: 8px 8px 6px;
  justify-content: flex-start;
  gap: 0;
  overflow: hidden;
}

.tp-mi--volleyball .tp-vb-mid-top {
  box-sizing: border-box;
  flex: 0 0 20px;
  min-height: 20px;
  max-height: 20px;
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tp-mi--volleyball .tp-vb-sets-won {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  color: #49aed6;
}

.tp-mi--volleyball .tp-vb-mid-slot {
  gap: 0;
  font-size: 11px;
  line-height: 13px;
}

.tp-mi--volleyball .tp-vb-mid-slot .tp-mi__slot-time {
  font-size: 13px;
  line-height: 15px;
}

.tp-mi--volleyball .tp-vb-mid-slot .tp-mi__slot-date {
  font-size: 10px;
  line-height: 12px;
}

.tp-mi--volleyball .tp-vb-mid-top-ph {
  display: block;
  width: 100%;
  height: 16px;
}

.tp-mi--volleyball .tp-mi__score {
  box-sizing: border-box;
  flex: 0 0 40px;
  min-height: 40px;
  max-height: 40px;
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  line-height: 40px;
}

.tp-mi--volleyball .tp-vb-mid-sets {
  box-sizing: border-box;
  flex: 0 0 30px;
  min-height: 30px;
  max-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.tp-mi--volleyball .tp-mi__period {
  box-sizing: border-box;
  flex: 0 0 22px;
  min-height: 22px;
  max-height: 22px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  line-height: 13px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.tp-mi--volleyball.tp-mi--scheduled .tp-mi__score {
  color: #acb9c1;
}

.tp-mi--volleyball.tp-mi--live .tp-mi__score {
  color: #037cbd;
}

.tp-mi--volleyball.tp-mi--finished .tp-mi__score {
  color: #6c757b;
}

.tp-vb-set-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: center;
  margin: 0;
}

.tp-vb-set-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.tp-vb-set-pt {
  font-size: 11px;
  font-weight: 500;
  color: #acb9c1;
  line-height: 12px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 639px) {
  /* Публичная страница матча; ЛК судьи — referee_mobile_baseline.css */
  .tp-fig-block--match .tp-mi--volleyball .tp-mi__board,
  main:not(:has(.trainer-cabinet--referee)) .tp-mi--volleyball .tp-mi__board {
    gap: 12px;
  }

  .tp-fig-block--match .tp-mi--volleyball .tp-mi__mid,
  main:not(:has(.trainer-cabinet--referee)) .tp-mi--volleyball .tp-mi__mid {
    order: -1;
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 124px;
    min-height: 124px;
    max-height: 124px;
  }

  .tp-fig-block--match .tp-mi--volleyball .tp-mi__side,
  main:not(:has(.trainer-cabinet--referee)) .tp-mi--volleyball .tp-mi__side {
    flex: 1 1 calc(50% - 6px);
    min-width: min(100%, 160px);
    height: 124px;
    min-height: 124px;
    max-height: 124px;
  }

  .tp-fig-block--match .tp-mi--volleyball .tp-mi__crest,
  main:not(:has(.trainer-cabinet--referee)) .tp-mi--volleyball .tp-mi__crest {
    flex: 0 0 124px;
    width: 124px;
    min-width: 124px;
  }
}

.tp-vb-tl-wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto 16px;
  box-sizing: border-box;
}

.tp-vb-tl-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-bottom: 8px;
  padding: 0 4px;
}

.tp-vb-tl-tab {
  margin: 0;
  padding: 8px 4px;
  border: none;
  background: transparent;
  font: 500 14px/20px Inter, system-ui, sans-serif;
  color: #acb9c1;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.tp-vb-tl-tab.is-active {
  color: #49aed6;
  border-bottom-color: #49aed6;
}

.tp-vb-tl-panel--hidden {
  display: none;
}

.tp-mi-tl-hr {
  grid-column: 1;
  grid-row: 2;
  align-self: stretch;
  height: 2px;
  background: #e4eaef;
}

.tp-vb-tl-track {
  grid-column: 2;
  grid-row: 1 / span 3;
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: max(100%, var(--tp-vb-tl-min, 200px));
  height: 100%;
  min-height: 178px;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
}

.tp-vb-tl-set-label {
  position: absolute;
  top: 8px;
  left: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #d0dde4;
  pointer-events: none;
  z-index: 1;
}

.tp-vb-tl-axis {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: #e4eaef;
  z-index: 1;
  pointer-events: none;
}

.tp-vb-tl-marks {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  min-width: var(--tp-vb-tl-min, 200px);
}

.tp-vb-tl-node {
  position: absolute;
  top: 50%;
  left: 0;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  margin-left: -12px;
  pointer-events: auto;
}

.tp-vb-tl-bul {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #acb9c1;
  box-shadow: 0 1px 3px rgba(37, 42, 47, 0.1);
}

.tp-vb-tl-arrow {
  display: block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}

.tp-vb-tl-arrow--a {
  border-bottom: 7px solid #6c757b;
}

.tp-vb-tl-arrow--b {
  border-top: 7px solid #6c757b;
}

.tp-vb-tl-ball {
  position: absolute;
  left: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 50%;
  background: #fff;
  color: #acb9c1;
  line-height: 0;
  transform: translateX(-50%);
  pointer-events: none;
}

.tp-vb-tl-ball .tp-vb-ball-icon {
  display: block;
  width: 20px;
  height: 20px;
}

.tp-vb-ball-icon__outline,
.tp-vb-ball-icon__seam {
  stroke: currentColor;
}

.tp-vb-tl-node--a .tp-vb-tl-ball {
  bottom: calc(100% + 6px);
}

.tp-vb-tl-node--b .tp-vb-tl-ball {
  top: calc(100% + 6px);
}

.tp-vb-subs {
  max-width: 1160px;
  margin: 0 auto 16px;
}

.tp-vb-subs-sec--hidden {
  display: none;
}

.tp-ms-badge--sub {
  background: transparent;
}

.tp-ms-ico--sub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #e4eaef;
}

.tp-ms-ico--sub .ref-vb-sub-icon {
  display: block;
  width: 18px;
  height: 18px;
}

