/* ================================ MEDIA ================================ */
@media (max-width: 1600px) and (min-width: 1281px) {

    // .contacts-quest {
    // 	top: 30%;
    // 	right: 10%;
    // 	padding-right: 15px;
    // }
    // .carouselHeader-control {
    // 	position: absolute;
    // 	left: 10%;
    // 	padding-left: 10px;
    // 	bottom: 10%;
    // }
    // .carouselHeader-lang {
    // 	position: absolute;
    // 	right: 10%;
    // 	bottom: 8%;
    // }
    .header-image img {
        height: 155px;
    }

    .header-image .container {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 1280px) and (min-width: 1025px) {

    // .contacts-quest {
    // 	top: 30%;
    // 	right: 5%;
    // 	padding-right: 15px;
    // }
    // .carouselHeader-control {
    // 	position: absolute;
    // 	left: 4%;
    // 	padding-left: 15px;
    // 	bottom: 10%;
    // }
    // .carouselHeader-lang {
    // 	position: absolute;
    // 	right: 5%;
    // 	bottom: 7%;
    // }
    .header-image img {
        height: 155px;
    }

    .header-image .container {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 1280px) and (min-width: 992px) {
    .show-units .btn-outline-danger {
        font-size: 0.8rem;
    }
}

@media (max-width: 1024px) {
    // .navbar-brand {
    // 	margin-right: 1rem;
    // }
    // .other-brand img {
    // 	margin-right: 0;
    // }
    // .navbar-nav {font-size: 14px;}

    .carousel-caption {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        top: 10%;
        z-index: 10;
        padding-top: 0;
        padding-bottom: 0;
        color: #fff;
        text-align: left;
    }

    // .contacts-quest {
    // 	top: 20%;
    // 	right: 5%;
    // 	padding-right: 0;
    // }
    // .contacts-quest .text-slider {
    // 	margin-top: 2.5rem !important;
    // }
    // .carouselHeader-control {
    // 	position: absolute;
    // 	left: 3%;
    // 	bottom: 10%;
    // }
    // .carouselHeader-lang {
    // 	position: absolute;
    // 	right: 3%;
    // 	bottom: 8%;
    // }
    // .title-slider h2 {
    // 	height: 170px;
    // 	display: table-cell;
    // 	vertical-align: middle;
    // }

    // #text_tk364 {
    // 	font-size: 0.55rem;
    // }
    .header-image img {
        height: 155px;
    }

    .header-image .container {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .carousel-content .carousel-inner {
        height: 300px;
    }

    .right-main {
        width: 290px;
    }

    .img-news {
        height: 300px;
    }

    // .header-slider .row:first-child {
    // 	margin-bottom: 0;
    // }
}

@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav .dropdown-menu-center {
        left: auto;
    }
}

/* Добавить от 10.08.2018 */
// @media (min-width: 769px) and (max-width: 991px) {
// 	.contacts-quest {
// 		top: 12%;
// 	}
// 	.contacts-quest .text-slider {
// 	    margin-top: 0.5rem !important;
// 	}
// 	.text-slider p.text-slider-txt {
// 	    margin-top: 20px;
// 	}
// }
/* ================== */

@media (max-width: 768px) {

    // .btn-sign-in {
    // 	margin-top: 15px;
    // }
    // .navbar-collapse {
    // 	border-top: 1px solid #0463B1;
    // 	padding-top: 10px;
    // 	padding-bottom: 10px;
    // 	margin-top: 10px;
    // }
    .header-image .container {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .carousel-content .carousel-inner {
        height: 250px;
    }

    .carousel-content .carousel-indicators li {
        max-height: 40px;
    }

    // .text-slider p.text-slider-txt {
    // 	margin-top: 10px;
    // }
    // .contacts-quest {
    // 	top: 12%;
    // }
    .right-main {
        width: 210px;
    }

    .table-all-ac td {
        padding-left: 0.3rem;
        padding-right: 0.3rem;
    }

    .img-news {
        height: 250px;
    }

    // .header-slider .row:first-child {
    // 	margin-bottom: 1rem;
    // }
    // .contacts-quest .text-slider {
    // 	margin-top: 0.5rem !important;
    // }

}

@media (max-width: 767px) {
    .right-main {
        width: auto;
    }
}

@media (max-width: 736px) {
    .header-image .container {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 568px) {

    // .navbar-brand {width: 90px;}
    // a.navbar-brand {margin-right: 0;}
    // .other-brand img {
    // 	margin-right: 0;
    // 	width: 40px;
    // }
    // .header-xs-hr {border-top-color: #fff;}
    // .other-brand-collapse {
    // 	display: block !important;	
    // 	margin-top: 15px;
    // 	margin-bottom: 10px;
    // }
    // .other-brand-collapse img {width: 40px;}
    .btn-sign-in {
        margin-top: 15px;
        width: 100%;
    }

    // .navbar-light .navbar-nav .nav-link {
    // 	border-bottom: 2px solid transparent;
    // }
    // .navbar-light .navbar-nav .nav-link.active {
    // 	border-bottom: 2px solid #1880e7;
    // }
    // .popover.bs-popover-bottom, .popover.bs-popover-auto[x-placement^="bottom"] {
    // 	margin-top: 0.8rem;
    // }

    .button-activities a {
        font-size: 0.8rem;
    }

    .header-image .container {
        /* left: 0;
		top: 10%; */
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .table-all-ac td,
    .table-all-ac .btn {
        font-size: 0.725rem;
    }

    .img-news-all {
        height: 250px !important;
    }

    // .carouselHeader-lang {
    // 	right: 0;
    // 	bottom: auto;
    // }
    // .carouselHeader-lang .breadcrumb-item.active,
    // .carouselHeader-lang .breadcrumb-item + .breadcrumb-item::before {
    // 	color: #ddd;
    // }
}

// @media (max-width: 359px) and (min-width: 321px) {
// 	.header-xs-hr {display: none;}
// 	.header-xs .container {padding-top: 10px !important;}
// 	.header-xs .contacts-top {margin-top: 10px !important;}
// 	.header-xs .contacts-top a {font-size: 14px;}
// }

@media (max-width: 320px) {
    // .header-xs-hr {display: none;}
    // .header-xs .contacts-top a {font-size: 14px;}
    // .header-xs .contacts-top {margin-top: 10px !important;}

    .btn-group i {
        font-size: 0.8rem;
    }
}

/* 2 колонки на sm */
@media (min-width: 480px) {
    #openNaksContent .card-columns {
        -webkit-column-count: 2;
        column-count: 2;
    }

    #sasvPartnersContent .card-columns {
        -webkit-column-count: 2;
        column-count: 2;
    }
}

/* 3 колонки на md */
@media (min-width: 768px) {

    #openNaksContent .card-columns,
        {
        -webkit-column-count: 3;
        column-count: 3;
    }
}

/* 4 колонки на lg и xl */
@media (min-width: 992px) {
    #openNaksContent .card-columns {
        -webkit-column-count: 3;
        column-count: 3;
        /* -webkit-column-count: 4;
		column-count: 4; */
    }

    #sasvPartnersContent .card-columns {
        -webkit-column-count: 3;
        column-count: 3;
    }

    #partnersContent .card-columns {
        -webkit-column-count: 4;
        column-count: 4;
    }
}