.komanda {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 661px) {
  .komanda .views-row:nth-child(4n+3) .teaser > .column:first-child,
  .komanda .views-row:nth-child(4n+4) .teaser > .column:first-child {
    order: 2;
  }
  .komanda .views-row:nth-child(4n+3) .teaser > .column:last-child,
  .komanda .views-row:nth-child(4n+4) .teaser > .column:last-child {
    order: 1;
  }
}
@media (min-width: 1101px) {
  .komanda {
    grid-template-columns: repeat(2, 1fr);
  }
}
.komanda .teaser {
  display: flex;
}
@media (max-width: 550px) {
  .komanda .teaser {
    flex-direction: column;
  }
}
@media (min-width: 551px) {
  .komanda .teaser .column:first-child {
    flex: 0 0 auto;
  }
  .komanda .teaser .column:last-child {
    flex: 1 1 auto;
  }
}

@media (min-width: 661px) {
  .komanda .teaser {
    grid-template-columns: repeat(2, 1fr);
  }
}
.komanda .column-bg {
  background: url("../images/rectangle.jpg") no-repeat center/cover;
  display: flex;
}

.komanda .wrapping {
  margin-block: auto;
  padding-inline: 30px;
  width: 100%;
}

.komanda .wrapping > .bottom {
  margin-top: 8px;
}

@media (max-width: 660px) {
  .komanda .wrapping {
    width: 100%;
    padding-block: 15px;
  }
  .komanda .wrapping .top {
    text-align: center;
  }
}
.komanda .media__element {
  width: 100%;
  height: auto;
  object-fit: cover;
}
@media (min-width: 551px) {
  .komanda .media__element {
    max-width: 280px;
  }
}
@media (min-width: 631px) {
  .komanda .media__element {
    max-width: 400px;
  }
}
@media (min-width: 801px) {
  .komanda .media__element {
    max-width: 400px;
  }
}
@media (min-width: 1101px) {
  .komanda .media__element {
    width: auto;
    height: 320px;
  }
}
@media (min-width: 1201px) {
  .komanda .media__element {
    height: 400px;
  }
}
@media (min-width: 1701px) {
  .komanda .media__element {
    height: 600px;
  }
}
@media (min-width: 2500px) {
  .komanda .media__element {
    height: 768px;
  }
}
@media (min-width: 3000px) {
  .komanda .media__element {
    height: 1000px;
  }
}

.komanda .name {
  font-size: 30px;
  font-family: var(--font-family-secondary);
  letter-spacing: 0em;
  color: rgb(252, 254, 254);
  margin-bottom: 5px;
}

.komanda .role {
  font-size: 12px;
  font-family: var(--font-family-primary);
  letter-spacing: 0.0666666667em;
  color: rgb(252, 254, 254);
  margin-bottom: 15px;
}

.komanda .line {
  width: 10%;
  height: 2px;
  background-color: rgb(250, 249, 250);
  border-radius: 0;
  margin-bottom: 7.5px;
}

@media (max-width: 660px) {
  .komanda .line {
    margin-inline: auto;
  }
}
.komanda .vk {
  text-align: center;
}

.komanda .vk a {
  color: rgb(213, 218, 227);
  font-size: 29px;
}

.komanda .vk a:hover {
  color: rgb(250, 253, 254);
}

.komanda .zapisatsya {
  text-align: center;
}

.komanda .zapisatsya a {
  padding-inline: 15px;
  padding-block: 11px;
  text-decoration: none;
  background-color: rgba(44, 44, 44, 0);
  display: inline-block;
  text-align: center;
  border-style: solid;
  border-top-width: 2px;
  border-bottom-width: 2px;
  border-left-width: 2px;
  border-right-width: 2px;
  border-color: rgb(44, 44, 44);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(250, 253, 254);
  transition: all 0.3s ease;
}

.komanda .zapisatsya a:hover {
  background-color: rgb(44, 44, 44);
}

.komanda .buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.komanda .certifikaty {
  text-align: center;
}

.komanda .certifikaty a {
  padding-inline: 15px;
  padding-block: 11px;
  text-decoration: none;
  background-color: rgba(44, 44, 44, 0);
  display: inline-block;
  text-align: center;
  border-style: solid;
  border-top-width: 2px;
  border-bottom-width: 2px;
  border-left-width: 2px;
  border-right-width: 2px;
  border-color: rgb(44, 44, 44);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(250, 253, 254);
  transition: all 0.3s ease;
}

.komanda .certifikaty a:hover {
  background-color: rgb(44, 44, 44);
}