@media screen {
  body {
    height: 100vh !important;
    background: #53565b !important;
    min-height: unset !important;
  }
  footer,
  .main_page_bg,
  .autocomplete_mod .list_wrapper {
    background: #53565b;
  }
  .demo_start_btn {
    color: var(--primary-color);
  }
  .main_page_bg {
    /* padding-bottom: 100px; */
    height: 100%;
  }

  /* icons */
  .search_bar_mod .ui_input_wrapper .white_cross_ico {
    position: absolute;
    right: 0px;
    background: url("../img/icons/white_cross_ico.svg");
    background-size: cover;
    display: block;
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
    cursor: pointer;
  }
  /* icons */

  .search_bar_mod .ui_input_wrapper.from_wrapper,
  .pages_links_wrapper .pages_link_mod .pages_link_row,
  .pages_link_mod
    .pages_link_row
    .dropdown_list_wrapper
    .history_list
    .history_top_row,
  .pages_link_mod
    .pages_link_row
    .dropdown_list_wrapper
    .history_list
    .history_top_row
    .history_block,
  .index_calendar .calendar_mod {
    display: flex;
  }
  .pages_links_wrapper .pages_link_mod .pages_link_row,
  .pages_link_mod
    .pages_link_row
    .dropdown_list_wrapper
    .history_list
    .history_top_row,
  .pages_link_mod
    .pages_link_row
    .dropdown_list_wrapper
    .history_list
    .history_top_row
    .history_block {
    justify-content: space-between;
  }
  .search_bar_mod .ui_input_wrapper.from_wrapper,
  .pages_links_wrapper .pages_link_mod .pages_link_row,
  .pages_link_mod
    .pages_link_row
    .dropdown_list_wrapper
    .history_list
    .history_top_row,
  .pages_link_mod
    .pages_link_row
    .dropdown_list_wrapper
    .history_list
    .history_top_row
    .history_block {
    align-items: center;
  }
  .pages_link_mod
    .pages_link_row
    .history_dropdown
    .history_list_item
    .history_link {
    flex-wrap: wrap;
  }
  .pages_link_mod {
    font-size: 10px;
  }
  .pages_link_mod
    .pages_link_row
    .history_dropdown
    .history_list_item
    .history_price_row
    .price,
  .pages_link_mod
    .pages_link_row
    .history_dropdown
    .history_list_item
    .history_price_row
    .currency {
    font-size: 12px;
  }
  .autocomplete_mod .list_wrapper li,
  .common_list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }
  .autocomplete_mod .list_wrapper li {
    padding: 16px 10px;
    cursor: pointer;
  }
  .mobile_menu_wrapper::-webkit-scrollbar {
    display: none;
  }
  .mobile_menu_wrapper {
    -ms-overflow-style: none;
  }
  #ajaxrequest_progress_image object {
    position: absolute;
    left: 50%;
    margin-left: unset !important;
    top: 50%;
    margin-top: unset !important;
  }
  .route_block {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    margin-left: 71px;
    width: 100%;
  }
  .route_block .search_bar_wrapper {
    width: 29%;
  }
  .route_block .history_block {
    display: flex;
    margin-top: 4px;
    gap: 8px;
  }
  .route_block .history_block .history_item {
    font-size: 16px;
    border-radius: var(--btn-border);
    padding: 0 2px;
    cursor: pointer;
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: 0.01s ease-in-out;
  }
  .route_block .history_block .history_item:hover {
    overflow: unset;
    text-overflow: unset;
    max-width: unset;
    padding: 0 2px;
    color: #000;
    background-color: var(--primary-color);
    border-radius: var(--btn-border);
    transition: 0.01s ease-in-out;
  }
  .grey_right_arr_ico {
    background: url("../img/icons/grey_arr_right_ico.svg")
      no-repeat;
    background-position: center;
    display: inline-block;
    min-width: 16px;
    height: 16px;
  }
  .lil_grey_dot {
    background: #828282;
    border-radius: 50%;
    display: inline-block;
    width: 4px;
    height: 4px;
  }
  .demo_start_btn {
    display: block;
  }
  .ui_input_wrapper .autocomplete_mod {
    border-bottom: 1px solid #bdbdbd;
    position: relative;
  }
  .ui_input_wrapper .autocomplete_mod:after {
    background: var(--primary-color);
    bottom: -1px;
    content: "";
    left: 50%;
    position: absolute;
    transition: 0.2s ease-in-out;
    height: 1px;
    width: 0;
  }
  .ui_input_wrapper .autocomplete_mod:before {
    background: var(--primary-color);
    bottom: -1px;
    content: "";
    position: absolute;
    right: 50%;
    height: 1px;
  }
  .ui_input_wrapper.focus .autocomplete_mod:after,
  .ui_input_wrapper.focus .autocomplete_mod:before {
    width: 50%;
    transition: 0.2s ease-in-out;
  }
  .ui_input_wrapper.focus .autocomplete_mod .ui_placeholder {
    color: var(--light-grey-txt);
    font-size: 15px;
    transform: translateY(-18px);
    transition: 0.2s ease-in-out;
    font-weight: normal;
  }
  .common_list li {
    padding-top: 10px;
    padding-bottom: 10px;
    cursor: pointer;
  }
  .search_bar_wrapper {
    position: relative;
  }
  .search_bar_mod .from_wrapper {
    position: relative;
    width: 90%;
  }
  /* .search_bar_mod input {
    font-size: 24px;
  } */
  .search_bar_mod > div {
    padding-top: 10px;
    padding-bottom: 0;
  }
  .autocomplete_mod {
    background: transparent;
    width: 100%;
    position: relative;
  }
  .autocomplete_mod .ui_placeholder {
    position: absolute;
    top: 8px;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.16);
  }
  .autocomplete_mod input {
    background: transparent;
    border: none;
    width: inherit;
    padding: 10px 0;
    position: relative;
    font-size: 24px;
    padding-bottom: 4px;
  }
  .autocomplete_mod .list_wrapper {
    display: none;
    position: absolute;
    height: auto;
    max-height: 280px;
    top: 50px;
    width: 100%;
    overflow: scroll;
    z-index: 1;
    -webkit-box-shadow: 0px 4px 8px -3px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0px 4px 8px -3px rgba(0, 0, 0, 0.2);
    box-shadow: 0px 4px 8px -3px rgba(0, 0, 0, 0.2);
  }
  .autocomplete_mod .list_wrapper ::-webkit-scrollbar {
    width: unset !important;
  }

  .search_bar_wrapper .ui_input_wrapper .green_right_arr_ico {
    display: none;
  }
  .search_bar_wrapper .ui_input_wrapper {
    width: 100%;
  }
  .pages_link_mod {
    padding-top: 32px;
    position: relative;
  }
  .pages_link_mod .dropdown_title .title_row {
    display: flex;
    align-items: center;
  }
  .pages_link_mod .dropdown_title .title_row .trash_ico_btn {
    margin-left: 10px;
    pointer-events: none;
  }
  .pages_link_mod .dropdown_title .title_row .trash_ico_btn > svg path {
    stroke: #828282;
  }
  .pages_link_mod .dropdown_title .title_row .trash_ico_btn.active {
    pointer-events: all;
    cursor: pointer;
  }
  .pages_link_mod .dropdown_title .title_row .trash_ico_btn.active > svg path {
    stroke: var(--primary-color);
  }
  .pages_link_mod .dropdown_title .dropdown_list_wrapper {
    top: 32px;
    left: 0;
    width: 100%;
    max-height: 27vh;
    overflow-y: scroll;
  }

  .pages_link_mod .pages_link_row .dropdown_h {
    position: relative;
    font-size: 10px;
    text-transform: uppercase;
  }
  .pages_link_mod
    .pages_link_row
    .history_dropdown
    .history_list
    .history_top_row
    .history_block {
    font-size: 14px;
  }
  .pages_link_mod
    .pages_link_row
    .history_dropdown
    .history_list
    .history_top_row
    .history_block
    * {
    font-size: 14px;
  }
  .pages_link_mod
    .pages_link_row
    .history_dropdown
    .history_list
    .history_top_row
    .history_block
    .depart_city,
  .pages_link_mod
    .pages_link_row
    .history_dropdown
    .history_list
    .history_top_row
    .history_block
    .arrive_city {
    text-align: left;
  }
  .pages_link_mod .arrive_city,
  .pages_link_mod .depart_city {
    text-overflow: ellipsis;
    width: 147px;
    white-space: nowrap;
    overflow: hidden;
  }
  .pages_link_mod .history_date {
    width: 75px;
  }
  .pages_link_mod .pages_link_row .grey_right_arr_ico {
    margin-left: 10px;
    margin-right: 10px;
  }
  .pages_link_mod .pages_link_row .lil_grey_dot {
    margin-left: 10px;
    margin-right: 10px;
  }
  .pages_link_mod
    .pages_link_row
    .history_dropdown
    .history_list_item
    .history_price_row {
    margin-top: 2px;
  }
  #ajaxrequest_progress_image {
    display: none;
    background: #494c51;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 49px;
    left: 0;
    z-index: 103;
  }
  #ajaxrequest_progress_image > object {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .currency {
    font-weight: 100;
  }
  .currency {
    font-weight: 300;
  }
  .main_wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 150px !important;
  }
  .pages_links_wrapper .dropdown_title.history_dropdown {
    width: 100%;
  }
}
@media screen {
  #ajaxrequest_progress,
  #ajaxrequest_progress_image {
    display: none;
    background-color: rgba(0, 0, 0, 0.8);
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99999999;
  }
  #ajaxrequest_progress_image object {
    position: absolute;
    left: 50%;
    margin-left: -64px;
    top: 50%;
    margin-top: -64px;
  }
}

.index_calendar .calendar_mod {
  width: 468px;
  min-width: 862px;
  overflow: hidden;
  margin-right: 45px;
  margin-top: 40px;
  margin-left: auto;
}
.index_calendar .calendar_wrapper {
  display: flex;
  align-items: center;
  position: relative;
  margin-top: 20px;
}
.index_calendar .calendar_wrapper .calLeft,
.index_calendar .calendar_wrapper .calRight {
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50px;
  background-color: #bdbdbd3b;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
}
.index_calendar .calendar_wrapper .calLeft {
  transform: rotate(180deg);
  left: 144px;
}
.index_calendar .calendar_wrapper .calRight {
  right: -6px;
}
.index_calendar .calendar_wrapper .calLeft:hover,
.index_calendar .calendar_wrapper .calRight:hover {
  filter: brightness(90%);
}
.index_calendar .calendar_wrapper .calLeft:active,
.index_calendar .calendar_wrapper .calRight:active {
  filter: brightness(85%);
}
.calendar_wrapper .green_right_arr_ico {
  background: url("../img/icons/fat_green_right_arr.svg") no-repeat;
  background-position: center;
  background-size: contain;
  display: inline-block;
  min-width: 17px;
  height: 17px;
}
.main_page_bg .main_text_block {
  font-size: 22px;
  font-family: Inter, BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-sans;
  font-weight: 100;
  max-width: 860px;
  margin: 30px 40px 0px auto;
}
.route_block .double_green_arr_ico {
  background: url(../img/icons/double_green_arr_ico.svg) no-repeat;
  background-position: center;
  display: inline-block;
  width: 30px;
  height: 18px;
  cursor: pointer;
  margin: 0 50px;
  margin-top: 12px;
  background-size: contain;
}
.index_calendar .calendar_mod .jscal-mon {
  min-width: 390px;
  margin-top: 0 !important;
}
.index_calendar .calendar_mod > .jscal-mon + .jscal-mon {
  margin-left: 82px;
}
.index_calendar .calendar_wrapper .train_filter_block {
  margin-top: 90px;
  align-self: stretch;
  margin-left: 25px;
}
.index_calendar .calendar_wrapper .train_filter_block .car_type_row {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  max-height: 306px;
  justify-content: space-between;
  grid-gap: 24px;
}
.index_calendar .calendar_wrapper .train_filter_block .car_type_row .car_type_btn {
  padding: 4px 8px;
  text-align: center;
  font-size: 14px;
  position: relative;
  cursor: pointer;
  width: 79px;
  background: #53565b;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}
.index_calendar .calendar_wrapper .train_filter_block .car_type_row .car_type_btn.active {
  background: #47494b;
}
.index_calendar .calendar_wrapper .train_filter_block .car_type_row .car_type_btn:before {
  content: "";
  position: absolute;
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;
  border-radius: 4px;      
  border: 1px solid #fff;
}
.index_calendar .calendar_wrapper .train_filter_block .car_type_row .car_type_btn:last-child {
  margin-right: 0;
}
.index_calendar .calendar_wrapper .train_filter_block .car_type_row .car_type_btn.active:before {
  content: "";
  position: absolute;
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;
  border: 1px solid var(--primary-color);
  border-radius: 4px;
}