
@media screen and (max-width: 1240px){
    #content .inside {
        padding: 0px 30px 43px;
    }
}

@media screen and (max-width: 1180px){
    #content .inside > .flex #left-sidebar {
        order: 2;
        width: auto;
        text-align: center;
    }
    #left-sidebar .widget-text-2 .ico {
        text-align: center;
    }
    #main-content {
        width: 960px;
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }
    .aeroplane-body .name-coll {
        width: calc(100% - 430px);
    }
    #content .inside {
        padding-left: 10px;
        padding-right: 10px;
    }
    .train-table,
    #calendar .listof-calendars,
    #contacts .contact-form,
    #block_form {
        width: 728px;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    #right-sidebar {
        margin-top: 40px;
        width: auto;
        text-align: center;
    }
    #popular-flights {
        width: 728px;
        margin: 0 auto;
        max-width: 100%;
        margin-bottom: 48px;
    }
    
}
@media screen and (max-width: 1040px){
    
    #footer .nav li {
        margin-left: 23px;
    }  
    
    #footer .nav li a {        
        font: 12px/1 Arial, sans-serif;        
    }
       
}
@media screen and (max-width: 960px){
       
    #popular-flights .station-wrapper .overlay {
        opacity: 1;
        
    }
    #footer .inside > .flex {
        justify-content: center;
    }
    #footer .nav {
 
        margin-bottom: 20px;
        order: -1;
    }
    
    #header .nav li a {
        padding: 24px 16px
    }
    #popular-flights .station-wrapper .overlay:hover .caption p span {
        border-bottom: none;
    }
    
}
@media screen and (max-width: 780px){
    .field-routeform-from, .field-routeform-to {
        width: 302px
    }
    #contacts .contact-description p {
        padding-left: 70px;
        padding-right: 0px;
    }
    #contacts .contact-description p:after {
        left: 0;
    }
    #footer .inside {
        padding-left: 0px;
        margin-right: 0px;
        padding-right: 0;
    }
    #block_form .forms button {
        margin-left: 96px;
    }
    .soc-with-angle .flex {
        justify-content: center;
        padding-bottom: 10px;
        padding-top: 4px;
    }
    #block_form .forms {
        padding-left: 32px;
        padding-right: 32px;

    }
    .soc-with-angle .right {
        padding-right: 0;
    }
    .soc-with-angle .left {
        background: none;
        color: #212121;
        text-align: center;
        
        padding: 10px;
        width: 100%;
    }
   

}
@media screen and (max-width: 768px){

    .copy_h{
        display: none;
    }
    
    .copy_v{
        display: block;
    }
    #main-content .soc-widget .left-part {
        margin-bottom: 20px;
        width: 100%;
        text-align: center;
    }
    #main-content .soc-widget > .flex-sb {
        justify-content: space-around
    }
    #block_form .forms {
        padding-top: 50px;
        background-color: #022753;
        background-position: center;
    }
    .refresh-button {
        top: 76px;
    }
    #content .inside {
        padding-left: 10px;
        padding-right: 10px;
    }
    #block_form .forms #route-form .form-group {
        display: block;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    #block_form .forms .form-group input {
        width: 360px;
    }
    #block_form .forms .form-group input#routeform-date {
        width: 360px;
    }
    #block_form #route-form .field-routeform-date ,
    #block_form #route-form .field-routeform-from {
        margin-right: 0;
        width: 360px;
    }
    .field-routeform-from, .field-routeform-to {
        width: 360px;
    }
    #block_form  .forms #route-form button {
        display: block;
        margin: 0 auto
    }    
    #popular-flights .station-wrapper,
    #popular-flights .station-wrapper .image,
    #popular-flights .station-wrapper .image img {
        height: 100%;
    }
    #header {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    #header #toggler-wrapper {
        display: block;
        margin-right: 10px;
    }
    #header .nav {
        display: none;
    }
    #footer .flex {
        justify-content: space-around;
    }
    #footer .nav {
        display: block;
        margin-top: 20px;
    }
    #footer .nav li {
        margin-left: 10px;
        margin-right: 10px;
    }
    .train-table, #calendar .listof-calendars, #contacts .contact-form, #block_form {
        width: 700px;
        max-width: 100%;
    }
    #block_form .tabs .tab-item {
        width: 350px;
        height: 41px;
        line-height: 41px;
        background-size: 350px auto;
    }
  
    
    #block_form .forms .row-input input {
        height: 41px;
    }
    #block_form .tabs {
        justify-content: space-around;
    }
    #block_form .tabs .tab-item {
        margin-left: 0;
        margin-right: 0;
        width: 250px;
    }
    #block_form .forms {
        padding-left: 20px;
        padding-right: 20px;
    }
    #block_form .forms .row {
        margin-bottom: 32px;
    }
    .train-table .train-info {
        margin-bottom: 10px;
        padding-bottom: 15px;
        border-bottom: 1px solid #ddd;
    }
    .train-table .train-info .minfo {
        margin-bottom: 8px;
    }
    .train-table .train-info .minfo > div {
        display: inline-block;
        vertical-align: bottom;
        margin-bottom: 0;
        line-height: 1;
    }
    .train-table .train-ad .hidden-duration {
        display: block;
        margin-bottom: 7px;
    }
    .train-table .result-row .train-ad {
        padding-right: 0;
    }
    .train-table .result-row {
        padding-top: 13px;
        padding-bottom: 13px;
    }
    .train-table {
        max-width: 100%;
    }
    #calendar .listof-calendars .calendar-item table tbody td {
        padding: 1px;
    }
    #calendar .listof-calendars .calendar-item {
        width: 346px;
    }
    #contacts .contact-form .text {
        width: 49%
    }
    #contacts .contact-form .text input {
        width: 100%;
    }
    
    .article.news .image {
        margin-bottom: 10px;
        width: auto;
    }
    .article.about img {
        width: 280px
    }
    #popular-flights .wide,
    #popular-flights li.small {
        max-width: 49.5%;
        height: auto;
    }
    #popular-flights .station-wrapper .image img {
        height: auto;
        max-width: 100%;
    }
    #popular-flights .station-wrapper .image {
        height: auto;
    }
    #popular-flights li {
        height: auto;
    }
    #popular-flights .station-wrapper .image img.hide-mobile {
      display: none;
    }
    #popular-flights .station-wrapper .image img.hide-pc {
      display: block;
    }
    .place-time {
        background-position: left -45px top 0px, right 4px top 36px;
    }
    #block_form .forms .form-group.field-routeform-to {
        padding-top: 10px;
    }
    .refresh-button {
        top: 58px;
        left: 50%;
        margin-left: -13px;
    }
}

@media screen and (max-width: 720px){
    #block_form .forms #station-form button {
        margin-left: 0;
        float: right;
    }
    
    #contacts .contact-description > div.first {
        background-image: none;
    }
    #contacts .contact-description > div.second {
        background-image: none;
    }
    #block_form .tabs .tab-item {
        width: 46%;
        background-size: 100% 100%;
    }
    
    #block_form {
        width: 100%;
    }
    #block_form .forms .row:nth-child(1) > div {
        width: 100%;
    }
    #block_form .forms .row-input input {
        width: 100%;
    }
    #nearest-stations .flight-list li {
        width: 49%;
    }
    #calendar .listof-calendars {
        max-width: 100%;
    }
    #calendar .listof-calendars .flex {
        justify-content: space-around;
    }
    #contacts .contact-form {
        max-width: 100%;
    }
  
    #block_form #station-form .field-stationform-from input,
    #block_form #station-form .field-stationform-from span,
    #block_form #station-form .field-stationform-from,
    #block_form #station-form {
        max-width: 100%;
    }
    #block_form #station-form .field-stationform-date {
        margin-right: 0;
    }
    #footer .nav li {
        margin-left: 10px;
        margin-right: 10px;
    }
    .train-table.bus .train-info {
        width: 100%;
    }
    .train-table .result-row .train-ad {
        width: 100%;
    }
    .train-table.bus .result-row .waiting,
    .train-table.bus .result-row .departures {
        width: 33%;
    }
    .train-table.bus .result-row .departures:after {
        right: 10px;
    }
    .train-table .train-info {
        width: 100%;
    }
    .train-table .train-name {
        margin-bottom: 2px;
    }
    .train-table .train-links {
        padding-top: 0;
    }
    #copy .inside > .flex {
        justify-content: space-around;
    }
    
}
@media screen and (max-width: 660px){
    .aeroplane-body .name-coll {
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 10px;
    }
    .aeroplane-body .name-coll .name {
        margin-bottom: 6px;
    }
    .aeroplane-body .arival {
        margin-left: 30px;
    }
    .aeroplane-body {
        padding: 18px 20px 18px;
    }
    .aeroplane-footer {
        padding-left: 50px;
    }
    .aeroplane-footer:before {
        left: 26px;
    }
    .event-tab .event-departure{
        margin-bottom: 20px;
    }
    
}
@media screen and (max-width: 600px){
    #copy .copyright {
        margin-bottom: 16px;
    }
    .about-company .line > div:nth-child(1) {
        width: 100%;
    }
    .about-company .line > div:nth-child(2) {
        width: 100%;
    }
    .article.news .desc {
        width: 100%;
    }
}
@media screen and (max-width: 560px){
    
    .forms-similar .departures-list, .forms-similar .arrivals-list {
        width: 100%;
        margin-bottom: 15px;
    }
    
    #mostflight .flight-list li {
        width: 48%;
    }
    .place-time {
        padding: 24px;
    }
    .place-time {
        background-image: none;
    }
    .article.about img {
        width: auto;
        float: none;
    }
    .all-airplains-list .desc .flex {
        justify-content: center;
    }
    .all-airplains-list .coll {
        width: auto;
        min-width: 51%;
        max-width: 100%;
    }
    #block_form .tabs .tab-item.tab-2 {
        margin-left: -6px;
        z-index: 0;
    }
    #block_form .forms .row > div.search {
        text-align: center;
        width: 100%;
        margin-top: 34px;
    }
    #block_form .forms .row {
        margin-bottom: 23px;
    }
    
    
    #block_form .forms {
        padding: 32px 10px 32px; 
    }
    .refresh-button {
        margin-bottom: 4px;
        padding-left: 6px;
    }
    #helpfull-information .description .about_img, 
    .article.about .description .about_img, 
    .article.news-detail .description .about_img {
        display: block;
        margin: 0 auto 20px;
        float: none !important ;
        max-width: 100%
    }
    
    #popular-flights .station-wrapper img {
        max-width: 100%;
    }
    #popular-flights .slim,
    #popular-flights .wide {
        height: auto;
        width: auto;
    }
    /*#footer .nav {
        display: none;
    }*/
    #footer .nav li a {
        color: #fff;
        letter-spacing: 0.1px;
        text-decoration: none;
        text-transform: none;
        font: 14px/1 Arial, sans-serif;
        border-bottom: 1px solid transparent;
        transition: all 0.3s ease 0s;
        margin-top:10px;
    }
    .soc-widget.list .flex {
        justify-content: space-around;
        text-align: center;
    }
    .soc-widget.list > .flex .left-part {
        margin-bottom: 10px;
        text-align: center;
    }
    .copyright, .copyright-footer {
        text-align: center;
    }
    .article.news-detail .title,
    .title {
        font-size: 21px;
    }
    .bus-information .title br {
        display: none;
    }
}
@media screen and (max-width: 500px){
    #train .train-table .train-ad .departures .label, 
    #footer .nav li a {
        font-size: 14px;
    }
    #block_form .forms #station-form button {
        float: none;
        display: block;
        margin: 0 auto;
    }
    .banner img {
        max-width: 100%;
    }
    #block_form #station-form .field-stationform-date,
    #block_form #station-form .field-stationform-date input {
        width: 100%;
    }
    #popular-flights li.small {
        max-width: 100%;
        height: auto;
    }
    #success {
        max-width: 100%;
        padding: 20px 10px;
    }
    .fancybox-close {
        top: 0 !important;
        right: 0 !important;
    }
    .train-table .result-row .waiting.empty {
        display: none;
    }
    .train-table .result-row .waiting:after {
        display: none;
    }
    .train-table .result-row .waiting .time {
        font-size: 14px;
    }
    .train-table .result-row .waiting.empty,
    .train-table .result-row .departures.empty {
        display: block;
    }
    
    .train-table .train-links {
        padding-top: 0;
    }
    .train-table .result-row .waiting .time.small span {
        display: inline-block;
    }
    .train-table .result-row .departures.no-line:after {
        display: block;
    }
    .train-table .result-row .waiting > * {
        display: inline-block;
    }
    .train-table.bus .result-row .waiting,
    .train-table .result-row .waiting {
        order:1;
        width: 100%;
        margin-bottom: 10px;
    }
    .train-table .result-row .departures:after {
        right: 0;
    }
    .train-table .result-row .departures {
        order: 2;
        width: 58% !important;
    }
    .train-table .result-row .arrivals {
        order: 3;
    }
    
    #block_form .forms .label span {
        font-size: 12px;
    }
    
    #block_form .forms .row-input input {
        height: 39px;
    }
    
    #block_form .forms .refresh-button {
        text-align: center;
        margin-bottom: 15px;
    }
    #block_form .forms .row > div.search {
        margin-top: 14px;
    }
    #block_form .forms .row .checkboxes {
        width: 220px;
        margin: 0 auto;
        margin-top: 30px;
    }
    #block_form .forms .row-input input {
        font-size: 14px;
    }
    #block_form .tabs .tab-item {
        font-size: 13px;
    }
    #block_form .tabs .tab-item:nth-child(2){
        margin-left: -6px;
    }
    #contacts .contact-form .text:nth-child(1) {
        margin-bottom: 22px;
    }
    #contacts .contact-form .text {
        width: 100%;
    }
    #train .train-table .train-ad .departures .label, .train-table .train-ad .departures .label {
        background-position: right 6px center;
    }
    #train .train-table .train-ad .departures,
    .train-table .train-ad .departures {
        width: 160px;
    }
    .train-table .train-ad .arrivals {
        width: 116px;
    }
    
    #footer .nav li {
        margin-left: 10px;
        margin-right: 10px;
    }
    #copy .flex {
        justify-content: space-around;
    }
    #copy .social li {
        margin-left: 10px;
        margin-right: 10px;
    }
    #copy .social {
        order: 1;
       
        margin-bottom: 20px;
    }
    #copy .copyright {
        order: 2;
        text-align: center;
        width: 100%;
    }
    #header .logo img {
        width: 200px;
    }
    
    .train-table .train-ad .arrivals {
        width: 120px;
    }
    .train-table .result-row {
        padding: 10px 6px; 
    }
    #nearest-stations .flight-list li {
        width: 100%;
    }
    #right-sidebar img,
    #right-sidebar {
        max-width: 100%
    }
     

    #mostflight .flight-list li {
        width: 100%;
    }
    #popular-flights .slim,
    #popular-flights .wide {
        max-width: 100%
    }
    #popular-flights ul.flex  {
        justify-content: space-around;
    }
    
    .field-routeform-from, .field-routeform-to,
    #block_form .forms .form-group span,
    #block_form .forms .form-group input,
    #block_form #route-form .field-routeform-date, #block_form #route-form .field-routeform-from {
        max-width: 100% !important
    }
    .soc-widget.list span {
        margin-left: 0;
    }
    .soc-widget.list {
        padding: 10px;
    }
    #block_form .forms {
        padding-top: 42px;
    }
    .soc-widget .left-part span {
        font-size: 16px;
    }
    .train-table .result-row .departures:after {
        display: none;
    }
    .train-table .result-row .waiting.empty {
        display: none;
    }
    .train-table .result-row .departures.empty:after {
        display: block;
        width: 100%;
    }
    .train-table .result-row .departures.empty {
        width: calc(100% - 180px) !important;
        margin-bottom: 0;
    }
    .train-table .result-row .departures.no-line:after {
        display: block;
        width: calc(100% - 180px);
        top:3px !important;
        right: 25px
    }
    .train-table .train-ad .arrivals {
        width: 40%;
    }
    .aeroplane-list.plain .aeroplane-body {
        padding: 20px 8px 15px;
    }
    .aeroplane-body .in-air {
        margin-top: 0;
    }
}
@media screen and (max-width: 460px){
    .aeroplane-body .arival {   
        
    }
    .aeroplane-body .arival .line-1:after,
    .aeroplane-body .departure .line-1:after {
        display: none;
    }
   
    .aeroplane-body .in-air.empty + .departure {
        padding-left: 30px;
    }
    .aeroplane-body .in-air {
        text-align: left;
        padding-left: 30px;
        
        width: 100%;
        order: -1;
    }
    .aeroplane-body .departure {
        padding-left: 20px;
        max-width: 130px;
    }
    .aeroplane-body .in-air .time span {
        display: inline-block;
        font-family: "ProximaNova-Regular";
    }
    .aeroplane-body {
        padding-left: 8px;
        padding-right: 8px;
    }
    .aeroplane-footer:before {
        left: 16px;
    }
    .aeroplane-footer {
        padding-left: 38px;
    }
    .aeroplane-body .line-1,
    .aeroplane-body .time {
        margin-bottom: 5px;
    }
    .aeroplane-body .in-air {
        margin-bottom: 8px;
     
    }
    #contacts .contact-form .contact_body {
        padding: 22px;
    }
    .article.news-detail .title,
    .title {
        font-size: 20px;
    }
    
    .article.news .news-list .row a img {
        width: auto;
    }
    
    .aeroplane-body .time {
        font-size: 14px;
    }
    .aeroplane-body .in-air .time span {
        font-size: 13px;
    }
    .aeroplane-body .in-air.empty,
    .aeroplane-body .arival.empty {
        display: none;
    }
}
@media screen and (max-width: 380px){
    #block_form .tabs .tab-item > div {
        padding: 0 10px;
    }
    .ya-share2__container_size_m .ya-share2__icon {
        width: 32px !important;
        height: 32px !important;
    }
    #copy .social li {
        margin-left: 5px;
        margin-right: 5px;
    }

    #footer .nav li {
        margin-left: 6px;
        margin-right: 6px;
        
    }
    #copy .social li a {
        width: 36px
    }
    
    
    #footer .nav li:first-child {
        margin-left: 0px;
    }
    #footer .nav li:last-child {
        margin-right: 0px;
    }
    #calendar .listof-calendars .calendar-item {
        width: 320px;
    }
    #calendar .listof-calendars .calendar-item table tbody td > div {
        width: 36px
    }
    #calendar .listof-calendars .calendar-item table {
        padding: 0 2px 6px;
    }
    #news .lists-of-news .news-row .news-title a {
        font-size: 16px;
    }
    #block_form .tabs .tab-item p {
        margin: 0 0px
    }
    .train-table .result-row > div {
        padding-left: 6px;
        padding-right: 6px;
    }
 
    .train-table .train-ad .arrivals:after ,
    .train-table .train-ad .departures .label:after {
        display: none;
    }
    
    .train-table.bus .result-row .departures {
        width: 100% !important; 
        margin-bottom: 20px;
    }
    .train-table.bus .result-row .arrivals {
        width: 100% !important;
    }
    
}
@media screen and (max-width: 340px){
     
     
}