@media screen and (max-width: 1160px) {
  .container-trips-header {
    grid-template-columns: 25% 25% 20% 10% 20%;
  }
  
  .trip {
    grid-template-columns: 25% 25% 20% 10% 20%;
  }

  .trip-sale:after {
    width: calc(100% + 10px);
    left: 50%;
    top: 44%;
  }

  .trip-sale:before {
    width: calc(100% + 13px);
    left: 50%;
    top:44%;
  }

  .trip-sale-info {
    left: -6px;
  }

  .trip-charter:after {
    width: calc(100% + 10px);
    left: 50%;
    top: 44%;
  }

  .trip-charter:before {
    width: calc(100% + 13px);
    left: 50%;
    top: 44%;
  }

  .trip-charter-info {
    right: -6px;
  }
}

@media screen and (max-width: 925px) {  
  .container-trips-header {
    grid-template-columns: 25% 25% 18% 12% 20%;
  }
  
  .trip {
    grid-template-columns: 25% 25% 18% 12% 20%;
  }
  .message-by-trip-wrapper-img img {
    width:100%;
    height: auto;

    object-fit: contain;
  }
}

@media screen and (max-width: 870px) {
  .message-by-trip {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .message-by-trip-title {
    margin-top: 0;
    font-size: 16px;
  }
}

@media screen and (max-width: 870px) {
  .wrapper-trips-active  {
    position: fixed;
    top: 0;
    right: 0;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 100%;
    width: 100%;
    padding: 75px 14px 14px;

    background: #f6f9fe;

    overflow-y: scroll;
    z-index: 100;
  }

  .container-trips {
    padding: 0;
  }

  .container-trips-header {
    display: none;
  }
    
  .trip {
    display: flex;
    flex-direction: column;

    max-width: 320px;
    margin: 10px auto;
    padding: 29px 30px;

    background: #f2f2f2;
    border: 1px solid #d0d0d0;
    border-radius: 17px;
  }

  .trip:last-child:not(.trip-sale):not(.trip-charter) {
    padding: 29px 30px;
  }

  .trip-block{
    display: grid;
    grid-template-columns: 30% 70%;
    padding-bottom: 12px;

    border-bottom: 0;
  }

  .trip-block-header {
    display: block;
  }

  .trip-link {
    max-width: 182px;
    height: 45px;

    align-self: center;
  }

  .wrapper-trips-close-button {
    display: none;
  }
}