.playoff__top {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 50px 0;
}

.playoff__arrow {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--babyblue);
  border-radius: 6px;
  width: 30px;
  height: 54px;
  margin: 0 10px;
  border: none;
}

.playoff__arrow-icon {
  stroke: var(--ruby);
}

.playoff__step {
  display: flex;
  justify-content: center;
}

.playoff__step-item {
  width: 80px;
  margin: 0 10px;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.playoff__step-title {
  position: absolute;
  font-size: 12px;
  line-height: 30px;
  text-align: center;
  color: var(--ruby);
  top: -30px;
  left: 0;
  width: 100%;
  white-space: nowrap;
}

.playoff__step-half {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.playoff__step-container {
  background-color: var(--babyblue);
  border-radius: 6px;
  padding: 8px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  margin: 1px 0;
  cursor: pointer;
}

/*.playoff__step-item--32 .playoff__step-container {
  justify-content: space-between;
}*/

/*.playoff__step-item--8 .playoff__step-container {
  justify-content: center;
}*/

/*.playoff__step-item--8 .playoff__step-line {
  margin: 4px 0;
}*/

.playoff__step-item--8 .playoff__step-line:nth-child(4) {
  margin-bottom: 20px;
}

.playoff__step-item--final .playoff__step-container {
  align-items: center;
  justify-content: center;
}

.playoff__step-icon {
  fill: var(--white);
}

.playoff__step-line {
  height: 2px;
  background-color: var(--steelblue);
}

.playoff__step-line--thin {
  height: 1px;
}

.playoff__step-container .playoff__step-line--thin:not(:last-child) {
  margin-bottom: 1px;
}

.playoff__active .playoff__step-line {
  background-color: var(--azure);
}

.playoff__active .playoff__step-icon {
  fill: var(--azure);
}

.playoff__body {
  display: flex;
  justify-content: center;
}

.playoff__column--middle,
.playoff__column--last {
  flex-grow: 1;
  max-width: 560px;
}

.playoff__container {
  display: flex;
  height: 110px;
  margin: 0 0 10px 0;
}

.playoff__item {
  background-color: var(--babyblue);
  border-radius: 10px;
  width: 360px;
  height: 110px;
  display: flex;
  position: relative;
  z-index: 1;
}

.playoff__teams {
  flex-grow: 1;
  height: 100%;
}

.playoff__team {
  display: flex;
  align-items: center;
  height: 50%;
  padding: 5px 0 5px 15px;
  position: relative;
  z-index: 1;
}

.playoff__team:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  z-index: -1;
  transition: width 0.3s;
  background: var(--bronze-gradient);
}

.playoff__team:first-child:after {
  border-radius: 10px 0 0 0;
}

.playoff__team:nth-child(2):after {
  border-radius: 0 0 0 10px;
}

.playoff__team--highlighted:after {
  width: 100%;
}

.playoff__team--winner:not(.playoff__team--highlighted):after {
  background: var(--ruby);
  width: 4px;
}

.playoff__picture {
  margin: 0 14px 0 0;
  flex-shrink: 0;
}

.playoff__img {
  display: block;
  border-radius: 50%;
}

.playoff__team-name {
  font-size: 12px;
  line-height: 16px;
  color: var(--steelblue);
}

.playoff__team--winner .playoff__team-name {
  font-weight: 700;
}

.playoff__team--highlighted .playoff__team-name {
  color: var(--white);
}

.playoff__info {
  flex-shrink: 0;
  text-align: center;
  color: var(--steelblue);
  font-size: 12px;
  line-height: 16px;
  height: 100%;
  padding: 0 5px;
  display: flex;
  align-items: center;
}

.playoff__match {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 16px 10px;
  min-width: 40px;
}

.playoff__score {
  font-size: 16px;
  line-height: 22px;
  color: var(--ruby);
}

.playoff__score--winner {
  font-weight: 700;
}

.playoff__score-additional {
  text-transform: uppercase;
  color: var(--steelblue);
}

.playoff__score-penalty {
  font-size: 10px;
  line-height: 14px;
  color: var(--azure);
}

.playoff__future,
.playoff__text {
  padding: 0 10px;
  width: 130px;
}

.playoff__future {
  color: var(--ruby);
  font-weight: 600;
}

.playoff__date {
  margin: 0 0 5px 0;
}

/* Расстояния между */

.playoff__column--main .playoff__container:nth-child(even) {
  margin: 0 0 20px 0;
}

.playoff__column--middle {
  padding: 60px 0 0 0;
}

.playoff__column--middle .playoff__container {
  margin: 0 0 140px 0;
}

.playoff__column--last {
  padding: 185px 0 0 0;
}

.playoff__column--last .playoff__container {
  margin: 0 0 390px 0;
}

.playoff__container:last-child {
  margin: 0 !important;
}

/* Соединители */

.playoff__column--main .playoff__line {
  display: none;
}

.playoff__line {
  height: 120px;
  flex-grow: 1;
  display: flex;
  position: relative;
  top: 50%;
  margin-top: -60px;
}

.playoff__column--last .playoff__line {
  height: 252px;
  margin-top: -126px;
}

.playoff__line-part {
  width: 50%;
  height: 100%;
  position: relative;
}

.playoff__line-part__up {
  width: 100%;
  height: 50%;
  border-right: 1px solid var(--blue);
  border-top: 1px solid var(--blue);
}

.playoff__line-part__down {
  width: 100%;
  height: 50%;
  border-right: 1px solid var(--blue);
  border-bottom: 1px solid var(--blue);
}

.playoff__line-part--highlighted-upper .playoff__line-part__up,
.playoff__line-part--highlighted-lower .playoff__line-part__down {
  border-color: var(--orange);
}

.playoff__line-part--highlighted-upper .playoff__line-part:last-child:after,
.playoff__line-part--highlighted-lower .playoff__line-part:last-child:after {
  background-color: var(--orange);
}

.playoff__line-part:last-child:after {
  content: '';
  width: 100%;
  height: 1px;
  background-color: var(--blue);
  position: absolute;
  top: 50%;
  left: 0;
}

/* Финальные матчи */

.playoff__container--final .playoff__team--winner::after {
  width: 0;
}

.playoff__container--final  {
  margin: 0 0 100px 0 !important;
}

.playoff__container--final .playoff__item:before {
  content: '';
  position: absolute;
  width: calc(100% + 10px);
  height: calc(100% + 10px);
  top: -5px;
  left: -5px;
  border-radius: 14px;
  z-index: -1;
}

.playoff__container--gold .playoff__item:before {
  background: var(--gold-gradient);
}

.playoff__container--bronze .playoff__item:before {
  background: var(--bronze-gradient);
}

.playoff__container--final .playoff__item:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: var(--babyblue);
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 10px;
  z-index: -1;
}

.playoff__container--gold .playoff__item:after {
  background-image: url("/img/playoff/gold-cup.svg");
}

.playoff__container--bronze .playoff__item:after {
  background-image: url("/img/playoff/bronze-cup.svg");
}

.playoff__container--outsider .playoff__line-part {
  visibility: hidden;
}

.playoff__container--outsider .playoff__line-part:after {
  display: none;
}

.playoff__item-title {
  font-size: 12px;
  line-height: 16px;
  color: var(--ruby);
  position: absolute;
  top: -30px;
  left: 15px;
}

@media (max-width: 1710px) {
  .playoff__item {
    width: 340px;
  }
}

@media (max-width: 1600px) {
  .playoff__item {
    width: 360px;
  }
}

@media (max-width: 1370px) {
  .playoff__main {
    max-width: 1000px;
    margin: 0 auto;
  }

  .playoff__column--last {
    display: none;
  }
}

@media (max-width: 1200px) {
  .playoff__top {
    padding: 30px 0 0 0;
    margin: 0 0 40px 0;
  }
}

@media (max-width: 800px) {
  .playoff__top {
    margin: 0 0 30px 0;
  }

  .playoff__arrow {
    display: none;
  }

  .playoff__step {
    width: 100%;
    max-width: 600px;
  }

  .playoff__step-item {
    width: 80px;
    max-width: 80px;
    height: 100px;
  }

  .playoff__step-line {
    height: 1px;
  }

  .playoff__step-item--32 .playoff__step-line:nth-child(even) {
    display: none;
  }

  .playoff__step-item--8 .playoff__step-line {
    margin: 3px 0;
  }

  .playoff__column--middle {
    display: none;
  }

  .playoff__column--main {
    margin: 0 auto;
  }

  .playoff__container--final  {
    margin: 0 0 60px 0 !important;
  }
}

@media (max-width: 630px) {
  .playoff__step-item {
    margin: 0 10px 0 0;
    min-height: 60px;
  }

  .playoff__step-item--32 .playoff__step-container:nth-child(even) {
    display: none;
  }

  .playoff__step-item--8 .playoff__step-line {
    margin: 0;
  }

  .playoff__step-item--8 .playoff__step-container {
    justify-content: space-around;
  }

  .playoff__step-item--8 .playoff__step-line:nth-child(4) {
    margin-bottom: 10px;
  }

  .playoff__step-item:last-child {
    margin: 0;
  }

  .playoff__step-title {
    font-size: 10px;
  }

  .playoff__step-title-place {
    display: none;
  }
}

@media (max-width: 480px) {
  .playoff__step-item {
    margin: 0 5px 0 0;
  }
}

@media (max-width: 400px) {
  .playoff__column,
  .playoff__item {
    width: 100%;
  }

  .playoff__picture {
    margin: 0 10px 0 0;
  }

  .playoff__match {
    padding: 16px 5px;
    min-width: 30px;
  }

  .playoff__future,
  .playoff__text {
    width: 100px;
  }
}

@media (max-width: 350px) {
  .playoff__team {
    padding: 5px 0 5px 10px;
  }
}


