.search_tabs,
.search_tabs * {
    font-family: Montserrat, sans-serif
}

.search_tabs .tab .form_group>label .info,
.search_tabs .tabs_header .open_tab span,
.search_tabs .tabs_header .open_tab:before {
    vertical-align: middle;
    display: inline-block
}

.search_tabs {
    margin-top: 55px;
    padding-bottom: 65px
}

.search_tabs * {
    box-sizing: border-box
}

.search_tabs .tabs_header {
    font-size: 0;
    text-align: center
}

.search_tabs .tabs_header .open_tab {
    height: 42px;
    border: 1px solid #ed111f;
    font-size: 15px;
    color: #fff;
    display: inline-block;
    width: 180px;
    text-align: center;
    line-height: 40px;
    text-decoration: none;
    margin-right: 28px;
    border-radius: 5px
}

.search_tabs .tabs_header .open_tab:before {
    content: '';
    width: 14px;
    height: 24px;
    background-repeat: no-repeat;
    margin-right: 12px;
    background-size: auto 24px
}

.search_tabs .tabs_header .open_tab:last-child {
    margin-right: 0
}

.search_tabs .tabs_header .open_tab.active {
    cursor: default
}

.search_tabs .tabs_header .open_tab.active,
.search_tabs .tabs_header .open_tab:hover {
    background-color: #ed111f
}

.search_tabs .tabs_header .open_tab.zhd:before {
    width: 14px;
    background-image: url(/tickets/images/train.png)
}

.search_tabs .tabs_header .open_tab.aeroexpress:before {
    width: 25px;
    background-image: url(/tickets/images/aeroexpress.png)
}

.search_tabs .tabs_header .open_tab.hotels:before {
    width: 19px;
    background-image: url(/tickets/images/hotels.png)
}

.search_tabs .tabs_header .open_tab.suburban:before {
    width: 19px;
    background-image: url(/tickets/images/suburban.svg)
}

.search_tabs .tab {
    display: none;
    text-align: left;
    font-size: 13px;
    margin-top: 26px;
    margin-left: -10px;
    margin-right: -10px
}

.search_tabs .tab.active {
    display: flex
}

.search_tabs .tab .form_group {
    position: relative;
    padding-left: 10px;
    padding-right: 10px
}

.search_tabs .tab .form_group>label {
    display: block;
    height: 36px;
    line-height: 36px
}

.search_tabs .tab .form_group>label .info {
    width: 19px;
    height: 19px;
    position: relative;
    margin-left: 15px
}

.search_tabs .tab .form_group>label .info .open_info_icon {
    width: 19px;
    height: 19px;
    background: url(/tickets/images/info.png) top center no-repeat;
    cursor: pointer;
    display: block
}

.search_tabs .tab .form_group>label .info .content {
    position: absolute;
    top: calc(100% + 5px);
    background: #fff;
    border-radius: 4px;
    padding: 10px;
    font-size: 12px;
    color: #969696;
    line-height: 1.5;
    width: 260px;
    left: 50%;
    transform: translate(-50%, 0);
    box-shadow: 0 5px 20px rgba(0, 0, 0, .5);
    display: none;
    cursor: default;
    z-index: 1000
}

.search_tabs .tab .form_group .search_field {
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: auto 16px;
    border: 0;
    outline: 0;
    height: 52px;
    line-height: 32px;
    font-size: 15px;
    width: 100%;
    border-radius: 5px;
    padding: 10px 26px 10px 10px
}

.search_tabs .tab .form_group .search_field.error {
    background-color: #ffbfbf
}

.search_tabs .tab .form_group .search_field.point {
    background-image: url(/tickets/images/point.png)
}

.search_tabs .tab .form_group .search_field.calendar {
    background-image: url(/tickets/images/calendar.png);
    padding-right: 34px
}

.search_tabs .tab .form_group .input_helper {
    position: absolute;
    top: 91px;
    background: #fff;
    font-size: 13px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .5);
    width: calc(100% - 20px);
    z-index: 1000
}

.search_tabs .tab .form_group .input_helper ul {
    margin: 0;
    padding: 0;
    list-style-type: none
}

.search_tabs .tab .form_group .input_helper ul li {
    border-bottom: 1px solid #969696
}

.search_tabs .tab .form_group .input_helper ul li:last-child {
    border-bottom: 0
}

.search_tabs .tab .form_group .input_helper ul a {
    display: block;
    padding: 10px;
    color: #292929;
    text-decoration: none;
    transition: .3s
}

.search_tabs .tab .form_group .input_helper ul a:hover {
    background: #ebebeb
}

.search_tabs .tab .form_group .variants {
    margin-top: 8px
}

.search_tabs .tab .form_group .variants .variant {
    line-height: 18px;
    color: #25abd4;
    text-decoration: none;
    background: 0 0;
    border: 0;
    padding: 0;
    margin: 0 10px 0 0;
    outline: 0;
    transition: .3s;
    cursor: pointer;
    display: inline-block
}

.search_tabs .tab .form_group .variants .variant:hover {
    text-decoration: underline
}

.search_tabs .tab .form_group #train_from_station,
.search_tabs .tab .form_group #train_to_station {
    padding-left: 30px
}

.search_tabs .tab .form_group .mic {
    background: 0 0;
    -webkit-background-size: contain;
    background-size: contain;
    border: 0;
    outline: 0;
    padding: 0;
    width: 24px;
    height: 24px;
    position: absolute;
    left: 15px;
    top: 50px;
    cursor: pointer
}

.search_tabs .tab .form_group .mic svg {
    fill: #707070;
    transition: .3s;
    width: 100%
}

.search_tabs .tab .form_group .mic.active svg {
    animation: 1.5s linear infinite pulse
}

.search_tabs .tab .form_group .mic:hover svg {
    fill: #ed111f
}

.search_tabs .search_btn {
    background: #ed111f;
    height: 52px;
    line-height: 52px;
    text-align: center;
    width: 180px;
    color: #fff;
    font-size: 15px;
    border: 0;
    margin: 36px 0 0 10px;
    padding: 0;
    outline: 0;
    transition: .3s;
    cursor: pointer;
    text-decoration: none;
    border-radius: 5px
}

.search_tabs .search_btn:hover {
    background: #b8151f
}

.search_tabs .dropdown {
    position: relative
}

.search_tabs .dropdown.active {
    z-index: 10000
}

.search_tabs .dropdown .selected {
    height: 52px;
    background-color: #fff;
    background-repeat: no-repeat;
    color: #292929;
    font-size: 15px;
    padding: 10px;
    line-height: 32px;
    cursor: pointer;
    background-position: right 10px center;
    background-size: auto 16px;
    border-radius: 5px
}

.search_tabs .dropdown .selected:after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 1px solid #292929;
    border-bottom: 1px solid #292929;
    transform: rotate(45deg);
    margin: 0 0 3px 13px
}

.search_tabs .dropdown .selected.active:after {
    transform: rotate(-135deg);
    margin-bottom: 0
}

.search_tabs .dropdown .selected.disabled {
    cursor: default;
    color: #969696
}

.search_tabs .dropdown.ticket .selected {
    background-image: url(/tickets/images/ticket.png)
}

.search_tabs .dropdown.ticket .options {
    width: 300px
}

.search_tabs .dropdown.user .selected {
    background-image: url(/tickets/images/user2.png);
    padding-left: 30px
}

.search_tabs .dropdown.user .options {
    width: 260px
}

.search_tabs .dropdown .options {
    position: absolute;
    top: calc(100% + 12px);
    background: #fff;
    color: #292929;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #e5e5e5;
    display: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .5);
    max-height: 360px;
    overflow-y: auto
}

.search_tabs .dropdown .options.active {
    display: block
}

.search_tabs .dropdown .option {
    border-bottom: 1px solid #e5e5e5;
    padding: 14px;
    line-height: 20px;
    cursor: pointer;
    transition: .2s;
    background: #fff
}

.search_tabs .dropdown .option.active,
.search_tabs .dropdown .option:hover {
    background: #ebebeb
}

.search_tabs .dropdown .option:last-child {
    border-bottom: 0
}

.search_tabs .dropdown .tickets_counter {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center
}

.search_tabs .dropdown .type_option {
    padding: 0
}

.search_tabs .dropdown .type_option input {
    display: none
}

.search_tabs .dropdown .type_option input:checked+label {
    background: #ebebeb
}

.search_tabs .dropdown .type_option input:checked+label .checkbox {
    border-color: #ed111f
}

.search_tabs .dropdown .type_option input:checked+label .checkbox:before {
    background: #ed111f
}

.search_tabs .dropdown .type_option label {
    cursor: pointer;
    padding: 14px;
    display: block;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-size: 12px
}

.search_tabs .dropdown .type_option label .checkbox {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid #b1b1b1;
    margin-right: 10px
}

.search_tabs .dropdown .type_option label .checkbox:before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin: 1px;
    background: #fff
}

.search_tabs .counter .value,
.search_tabs .counter button {
    border: 0;
    background: 0 0;
    outline: 0;
    font-size: 15px;
    line-height: 20px
}

.search_tabs .dropdown .type_option label .name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    line-height: 1
}

.search_tabs .dropdown .type_option label .name .info {
    color: #969696
}

.search_tabs .counter {
    font-size: 0
}

.search_tabs .counter button {
    font-weight: 700;
    color: #969696;
    padding: 0 5px;
    cursor: pointer
}

.search_tabs .counter button:hover {
    color: #292929
}

.search_tabs .counter .value {
    width: 24px;
    color: #ed111f;
    text-align: center
}

.search_tabs .hotel_date_guests .options {
    padding: 20px 10px 20px 20px
}

.search_tabs .hotel_date_guests .counter_wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px
}

.search_tabs .hotel_date_guests .counter_wrap:first-child {
    margin-top: 0
}

.search_tabs .hotel_date_guests .counter_wrap .label {
    font-weight: 700
}

.search_tabs .hotel_date_guests .counter_wrap .label .info_row {
    color: #969696;
    display: block
}

.search_tabs .hotel_date_guests .hotel_childs_wrap {
    background: #ebebeb;
    padding: 20px 10px 20px 20px;
    margin: 20px -10px -20px -20px;
    position: relative;
    display: none
}

.search_tabs .hotel_date_guests .hotel_childs_wrap:before {
    content: '';
    position: absolute;
    right: 30px;
    top: -10px;
    border-bottom: 10px solid #ebebeb;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent
}

.search_tabs .zhd_from,
.search_tabs .zhd_to {
    width: 297px
}

.search_tabs .zhd_date_from,
.search_tabs .zhd_date_to {
    width: 198px
}

.search_tabs .zhd_search_btn {
    width: 208px
}

.search_tabs .suburban_date_from,
.search_tabs .suburban_from,
.search_tabs .suburban_to {
    width: 324px
}

.search_tabs .suburban_search_btn {
    width: 208px
}

.search_tabs .aeroexpres_ticket {
    width: 282px
}

.search_tabs .aeroexpres_dir {
    width: 273px
}

.search_tabs .aeroexpres_date {
    width: 192px
}

.search_tabs .aeroexpres_time {
    width: 243px
}

.search_tabs .hotel_from {
    width: 421px
}

.search_tabs .hotel_date_end,
.search_tabs .hotel_date_start {
    width: 198px
}

.search_tabs .hotel_date_guests {
    width: 173px
}

.search_tabs .find_train_button .text {
    display: block
}

.search_tabs .find_train_button .lds-ellipsis {
    display: none;
    margin: 19px auto
}

.search_tabs .find_train_button.busy {
    cursor: default
}

.search_tabs .find_train_button.busy .text {
    display: none
}

.search_tabs .find_train_button.busy .lds-ellipsis {
    display: block
}

.lds-ellipsis {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 13px
}

.lds-ellipsis div {
    position: absolute;
    top: 0;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #fff;
    animation-timing-function: cubic-bezier(0, 1, 1, 0)
}

.lds-ellipsis div:nth-child(1) {
    left: 8px;
    animation: .6s infinite lds-ellipsis1
}

.lds-ellipsis div:nth-child(2) {
    left: 8px;
    animation: .6s infinite lds-ellipsis2
}

.lds-ellipsis div:nth-child(3) {
    left: 32px;
    animation: .6s infinite lds-ellipsis2
}

.lds-ellipsis div:nth-child(4) {
    left: 56px;
    animation: .6s infinite lds-ellipsis3
}

@keyframes lds-ellipsis1 {
    0% {
        transform: scale(0)
    }

    100% {
        transform: scale(1)
    }
}

@keyframes lds-ellipsis3 {
    0% {
        transform: scale(1)
    }

    100% {
        transform: scale(0)
    }
}

@keyframes lds-ellipsis2 {
    0% {
        transform: translate(0, 0)
    }

    100% {
        transform: translate(24px, 0)
    }
}

@keyframes pulse {

    0%,
    100% {
        fill: #fff
    }

    70% {
        fill: #ed111f
    }
}

@-webkit-keyframes pulse {

    0%,
    100% {
        fill: #fff
    }

    70% {
        fill: #ed111f
    }
}

@media (max-width:1190px) {
    .search_tabs {
        padding-left: 10px;
        padding-right: 10px
    }

    .search_tabs .suburban_date_from,
    .search_tabs .suburban_from,
    .search_tabs .suburban_to {
        width: calc(33.333% - 73px)
    }
}

@media (max-width:980px) {
    .search_tabs .tab {
        flex-wrap: wrap
    }

    .search_tabs .tab .form_group>label .info {
        float: left;
        margin: 9px 15px 0 0
    }

    .search_tabs .tab .form_group>label .info .content {
        left: 0;
        transform: none
    }

    .search_tabs .zhd_from,
    .search_tabs .zhd_to {
        width: 50%
    }

    .search_tabs .zhd_date_from,
    .search_tabs .zhd_date_to {
        width: calc(50% - 114px)
    }

    .search_tabs .aeroexpres_dir,
    .search_tabs .aeroexpres_ticket {
        width: 50%
    }

    .search_tabs .aeroexpres_date,
    .search_tabs .aeroexpres_time {
        width: calc(50% - 90px)
    }

    .search_tabs .hotel_from {
        width: 100%
    }

    .search_tabs .hotel_date_end,
    .search_tabs .hotel_date_guests,
    .search_tabs .hotel_date_start {
        width: calc(33.33% - 60px)
    }

    .search_tabs .aeroexpres_date .search_field,
    .search_tabs .hotel_date_start .search_field,
    .search_tabs .zhd_date_from .search_field {
        padding-left: 44px !important;
        background-position: 10px center !important
    }
}

@media (max-width:850px) {
    .search_tabs .tabs_header .open_tab {
        font-size: 13px;
        width: 150px;
        margin-right: 10px
    }
}

@media (max-width:768px) {

    .search_tabs .suburban_date_from,
    .search_tabs .suburban_from,
    .search_tabs .suburban_to {
        width: 50%
    }

    .search_tabs .suburban_search_btn {
        width: calc(50% - 20px);
        margin-left: 10px;
        margin-right: 10px
    }
}

@media (max-width:660px) {

    .search_tabs .aeroexpres_date,
    .search_tabs .aeroexpres_dir,
    .search_tabs .aeroexpres_ticket,
    .search_tabs .aeroexpres_time,
    .search_tabs .hotel_date_end,
    .search_tabs .hotel_date_guests,
    .search_tabs .hotel_date_start,
    .search_tabs .hotel_from,
    .search_tabs .suburban_date_from,
    .search_tabs .suburban_from,
    .search_tabs .suburban_to,
    .search_tabs .zhd_date_from,
    .search_tabs .zhd_date_to,
    .search_tabs .zhd_from,
    .search_tabs .zhd_to {
        width: 100%
    }

    .search_tabs,
    .search_tabs .search_btn {
        margin-top: 20px
    }

    .search_tabs .tabs_header .open_tab {
        width: calc(25% - 10px);
        margin: 5px;
        height: auto;
        padding: 8px;
        font-size: 12px;
        line-height: 1
    }

    .search_tabs .tabs_header .open_tab:before {
        margin: 0
    }

    .search_tabs .tabs_header .open_tab span {
        width: 100%;
        margin-top: 6px
    }

    .search_tabs .tab {
        justify-content: space-around;
        margin-top: 0
    }

    .search_tabs .tab .form_group>label {
        height: 26px;
        line-height: 26px;
        font-size: 12px
    }

    .search_tabs .tab .form_group>label .info {
        position: absolute;
        margin: 0;
        right: 12px;
        top: 37px;
        z-index: 100
    }

    .search_tabs .tab .form_group>label .info .open_info_icon {
        background-image: url(/tickets/images/info_grey.png)
    }

    .search_tabs .tab .form_group>label .info .content {
        left: auto;
        right: calc(100% + 12px);
        top: 50%;
        transform: translate(0, -50%)
    }

    .search_tabs .tab .form_group>label .info .content:after {
        content: '';
        position: absolute;
        right: -8px;
        top: 50%;
        margin-top: -8px;
        border: 8px solid transparent;
        border-right: 0;
        border-left-color: #fff
    }

    .search_tabs .tab .form_group .variants {
        display: none
    }

    .search_tabs .tab .form_group .search_field {
        height: 40px;
        line-height: 20px;
        font-size: 13px
    }

    .search_tabs .tab .form_group .input_helper {
        top: 100%
    }

    .search_tabs .tab .form_group .mic {
        left: auto;
        right: 15px;
        top: 35px
    }

    .search_tabs .aeroexpres_ticket .dropdown .selected,
    .search_tabs .aeroexpres_ticket .search_field,
    .search_tabs .hotel_date_end .dropdown .selected,
    .search_tabs .hotel_date_end .search_field,
    .search_tabs .hotel_date_guests .dropdown .selected,
    .search_tabs .hotel_date_guests .search_field,
    .search_tabs .hotel_from .dropdown .selected,
    .search_tabs .hotel_from .search_field,
    .search_tabs .suburban_date_from .dropdown .selected,
    .search_tabs .suburban_date_from .search_field,
    .search_tabs .suburban_from .dropdown .selected,
    .search_tabs .suburban_from .search_field,
    .search_tabs .suburban_to .dropdown .selected,
    .search_tabs .suburban_to .search_field,
    .search_tabs .zhd_date_to .dropdown .selected,
    .search_tabs .zhd_date_to .search_field,
    .search_tabs .zhd_from .dropdown .selected,
    .search_tabs .zhd_from .search_field,
    .search_tabs .zhd_to .dropdown .selected,
    .search_tabs .zhd_to .search_field {
        padding-left: 44px !important;
        background-position: 10px center !important
    }

    .search_tabs .dropdown {
        z-index: 1
    }

    .search_tabs .dropdown .selected {
        height: 40px;
        font-size: 13px;
        padding: 4px 10px
    }

    .search_tabs .suburban_search_btn {
        width: calc(100% - 20px);
        margin-left: 10px;
        margin-right: 10px
    }
}

@media (max-width:480px) {
    .search_tabs .tabs_header .open_tab {
        width: calc(50% - 10px)
    }
}
