.teams__h2 {
  color: #000;
  font-weight: 600;
  font-size: 50px;
  line-height: 59px;
  letter-spacing: 0px;
  padding-bottom: 60px;
  text-align: left;
  margin: 0;
}
.teams__grid {
  display: grid;
  column-gap: 20px;
  row-gap: 80px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.teams__grid-block {
  cursor: pointer;
  transition: var(--transition);
     display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.teams__grid-block:hover{
   transition: var(--transition);
  transform: translateY(-10px);
}
#grut .teams__grid-block:nth-child(-n + 4) {
  display: flex;
}
#pripod .teams__grid-block:nth-child(-n + 12) {
  display: flex;
}

.teams__grid-block:hover .teams__grid-block-img {
  transition: var(--transition);
  background: #609495;
}
.teams__grid-block-img {
  transition: var(--transition);
  overflow: hidden;
  width: 100%;
  max-height: 340px;
  height: calc(30px + 20vw);
  background: #ebebeb;
  border-radius: 20px;
  position: relative;
}

.teams__grid-block-img img {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}
.teams__grid-block h3 {
  max-width: 252px;
  color: #000;
  font-weight: 600;
  font-size: 36px;
  line-height: 42px;
  letter-spacing: 0px;
  padding: 30px 0;
  margin: 0;
}
.teams__grid-block span {
  font-weight: 400;
  font-size: 16px;
  color: #000;
  line-height: 24px;
  letter-spacing: 0px;
  padding: 10px 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  background: #ebebeb;
}
.teams__grid-block p {
  font-weight: 400;
  font-size: 24px;
  line-height: 36px;
  letter-spacing: 0px;
  color: #666;
}
.teams__button {
  display: flex;
  margin-top: 120px;
  justify-content: space-between;
  align-items: center;
}
.teams__button p {
  font-weight: 400;
  font-size: 20px;
  color: #000;
  line-height: 24px;
  letter-spacing: 0px;
}
.teams__button a {
  font-weight: 600;
  font-size: 18px;
  color: #000;
  line-height: 21px;
  letter-spacing: 0px;
  padding: 30px 40px;
  background: #ebebeb;
  border-radius: 20px;
  transition: var(--transition);
}
#pripodbut {
  font-weight: 600;
  font-size: 18px;
  color: #000;
  line-height: 21px;
  letter-spacing: 0px;
  padding: 30px 60px;
  background: #ebebeb;
  border-radius: 20px;
  transition: var(--transition);
}
.teams__button a:hover,
#pripodbut:hover {
  transition: var(--transition);
  background: #fbba00;
}
@media only screen and (min-width: 1150px) and (max-width: 1290px) {
  .teams__grid-block-img {
    transition: var(--transition);
    overflow: hidden;
    width: 100%;
    max-height: 440px;
    height: calc(30px + 27vw);
    background: #ebebeb;
    border-radius: 20px;
    position: relative;
  }
}
@media only screen and (min-width: 850px) and (max-width: 1149px) {
  .teams__grid-block-img {
    transition: var(--transition);
    overflow: hidden;
    width: 100%;
    max-height: 509px;
    height: calc(30px + 42vw);
    background: #ebebeb;
    border-radius: 20px;
    position: relative;
  }
}
@media only screen and (min-width: 769px) and (max-width: 849px) {
  .teams__grid-block-img {
    transition: var(--transition);
    overflow: hidden;
    width: 100%;
    max-height: 730px;
    height: calc(30px + 88vw);
    background: #ebebeb;
    border-radius: 20px;
    position: relative;
  }
}
@media only screen and (min-width: 768px) and (max-width: 1150px) {
  .teams__grid {
    display: grid;
    column-gap: 20px;
    row-gap: 80px;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  }
}
@media only screen and (min-width: 320px) and (max-width: 768px) {
  .teams__button a {
    font-weight: 600;
    font-size: 14px;
    color: #000;
    line-height: 16px;
    letter-spacing: 0px;
    padding: 20px 30px;
    background: #ebebeb;
    border-radius: 20px;
    transition: var(--transition);
  }
  #pripodbut {
    font-weight: 600;
    font-size: 14px;
    color: #000;
    line-height: 16px;
    letter-spacing: 0px;
    padding: 20px 30px;
    background: #ebebeb;
    border-radius: 20px;
    transition: var(--transition);
  }
  .teams__button p {
    font-weight: 400;
    font-size: 12px;
    color: #000;
    line-height: 14px;
    letter-spacing: 0px;
  }
  .teams__grid-block-img {
    transition: var(--transition);
    overflow: hidden;
    width: 100%;
    max-height: 440px;
    height: calc(30px + 35vw);
  }
}
@media only screen and (min-width: 320px) and (max-width: 768px) {
  .teams__grid-block h3 {
      width: 85%;
    color: #000;
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    letter-spacing: 0px;
    padding: 20px 0;
  }
  .teams__grid-block span {
    font-weight: 400;
    font-size: 12px;
    color: #000;
    line-height: 14px;
    letter-spacing: 0px;
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 20px;
    background: #ebebeb;
  }
  .teams__grid-block p {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0px;
    color: #666;
  }
  .teams__h2 {
    color: #000;
    font-weight: 600;
    font-size: 26px;
    line-height: 31px;
    letter-spacing: 0px;
    padding-bottom: 30px;
    text-align: left;
   margin-top:40px ;
  }
  .teams__grid {
    display: grid;
    column-gap: 10px;
    row-gap: 20px;
    grid-template-columns: 1fr 1fr;
  }
}
.teams__preim {
    border-radius: 30px;
    max-width: 1440px;
       overflow: hidden;
    position: relative;
    margin: 0 auto;
    margin: 160px auto;
}
.teams__preim video{
    border-radius: 30px;
  position: absolute;
  z-index: 1;
  top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
}
.teams__preim__flex-block {
  cursor: pointer;
  background: #f9f9f9;
  border-radius: 30px;
  padding: 70px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: var(--transition);
  cursor: pointer;
}
.teams__preim__flex-block:hover {
  background: #fbba00;
  transition: var(--transition);
}
.teams__preim__flex-block img {
  max-width: 20px;
  width: 100%;
  transform: rotateZ(180deg);
  margin: 10px;
}
.teams__preim__flex {
  position: relative;
    z-index: 2;
  padding-top: 419px;
  padding-bottom: 30px;
  display: grid;
  padding-left: 30px;
  gap: 20px;
  grid-template-columns: 1fr 1fr 1fr;
  padding-right: 80px;
 
}
.teams__preim__flex-block h3 {
  color: #000;
  font-weight: 600;
  font-size: 50px;
  line-height: 59px;
  letter-spacing: 0px;
  margin: 0;
}
.teams__preim__flex-block p {
  color: #666;
  font-weight: 400;
  font-size: 24px;
  line-height: 36px;
  letter-spacing: 0px;
}
.teams__preim__flex-block-img {
  display: flex;
  gap: 20px;
  flex-direction: column;
}
@media only screen and (min-width: 320px) and (max-width: 1300px) {
  .teams__preim__flex-block {
    background: #f9f9f9;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: var(--transition);
    cursor: pointer;
  }
  .teams__preim__flex {
    padding-top: 419px;
    padding-bottom: 30px;
    display: grid;
    padding-left: 30px;
    gap: 20px;
    padding-right: 30px;
  }
}
@media only screen and (min-width: 320px) and (max-width: 1300px) {
  .teams__preim__flex-block h3 {
    color: #000;
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    letter-spacing: 0px;
    margin: 0;
  }
  .teams__preim__flex-block p {
    max-width: 200px;
    color: #666;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0px;
  }
}
@media only screen and (min-width: 320px) and (max-width: 768px) {
  .teams__preim {
    margin: 0;
}
  .teams__preim__flex-block img {
    max-width: 20px;
    width: 100%;
    transform: rotateZ(180deg);
    margin: 2px;
  }
  .teams__preim {
    border-radius: 20px;
  }
  .teams__button {
    margin-top: 40px;
    margin-bottom: 40px;
  }
  .teams__buttontwo {
    margin-top: 40px;
    margin-bottom: 0px;
  }
  .teams__preim__flex {

    padding-top: 268px;
    padding-bottom: 20px;
    display: grid;
    padding-left: 20px;
    gap: 10px;
    grid-template-columns: 1fr;
    padding-right: 20px;
  }
  .teams__preim__flex-block {
    padding: 40px;
  }
  .teams__preim__flex-block-img {
    display: flex;
    gap: 20px;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
  }
}
