/* =============================
   Feature Boxes Height Control
   ============================= */

/* Десктоп >992px: только последние 3 блока одной высоты */
@media (min-width: 992px) {
    .features-section .row:last-of-type .serv-section-2.feature-boxes-min-height,
    .features-section .row:nth-last-of-type(2) .serv-section-2.feature-boxes-min-height,
    .features-section .row:nth-last-of-type(3) .serv-section-2.feature-boxes-min-height {
        min-height: 302px !important; /* подбери под свой контент */
    }
    .features-section .feature-col {
    margin-bottom: 20px; /* регулируй под свой макет */
  }
}

/* только для экранов 768–990px */
@media (min-width: 768px) and (max-width: 991px) {
  /* все карточки по 2 в ряд */
  .features-section .col-md-4 {
    flex: 0 0 50%;   /* ширина 50% */
    max-width: 50%;
  }

  /* последняя карточка на всю ширину */
  .features-section .col-md-4:last-child {

    flex: 0 0 100%;
    max-width: 100%;
  }
}



.width-340{
    width:340px !important;
}

.h4-tm-span {
    color: #111 !important;
    font-size: 22px !important;
    font-weight: 500 !important;
    margin-bottom: 3px !important;
    -webkit-transition-duration: .6s;
    transition-duration: .6s;
}

.primary-button.button-lg{
white-space: nowrap;
}
.top-bar-info a{
    color:#fff;
}
.top-bar-info a:hover {
    color: #d21e2b;
}
.owl-carousel .owl-stage {
    display: flex !important;
    align-items: stretch !important;
}
.owl-carousel .owl-item {
    display: flex !important;
    height: auto !important;
}
.owl-carousel .item {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column;
}

.team-member-img {
    position: relative;
}

.badge-rect {
    position: absolute;
    bottom: 0%;
    left: 50%;
    transform: translate(-50%);

    background: red;
    color: #fff;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 16px;
    text-align: center;
    white-space: nowrap;
}


.phone-list{
    display: block;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .logo-footer-resize {
        width: 80%;
        margin-left: 20px !important;
    }

    .mt-60-sm{
        margin-top:60px;
    }

    .mt--40-sm {
        margin-top: -40px;
    }
}

.red-color {
    color: #d21e2b !important;
}

.white-color {
    color: white !important;
}

.black-color {
    color: #111 !important;
}

.blue-color {
    color: #302a5f !important;
}

.font-size-20 {
    font-size: 20px !important;
}

.feature-h5-max-width{
    max-width:200px;
}

.feature-boxes-min-height {
    min-height: 212px;
}

.feature-boxes-icon-top {
    float: none;
    position: relative;
    margin: 0 auto 32px;
    width: auto;
    text-align: center;
}

.feature-boxes-text-aling{
    text-align: center;
    width:100%;
}

.main-video-content h1 {
    position: relative;
    font-size: 40px;
    font-weight: 400;
    margin: 5px 0;
}
.social-area {
    border-radius: 20px;
    justify-content: center;
    display: flex;
    float: none;
    width: 220px;
    margin: 10px auto;
}
.social-area li {
    width: 60px;
    margin: 5px;
    padding: 10px 0;
}
button {
    cursor: pointer;
}
.crm-form.callback-box {
    position: fixed;
    top: 20%;
    left: 50%;
    height: 450px;
    width: 530px;
    margin-left: -265px;
    padding: 25px 15px 0;
    display: none;
    z-index: 999;
}
.crm-form.callback-box iframe {
    height: 386px !important;
    width: 100% !important;
    position: relative !important;
    top: 20px !important;
    margin-top: -10px !important;
}
.crm-btn-close .fa-close {
    float: right;
    margin-top: -20px;
    cursor: pointer;
}
#navigation4.container {
    max-width: 95%;
}
#top-bar .social-icons li  {
    margin: 5px 5px;
}
.social-icons img {
    max-width: 54px;
}
.blog-post-content {
    color: #999;
}
.blog-post-content ul li {
    list-style: disc;
}
.page-title-section .container {
    position: relative;
}
.black {
    color: #000 !important;
}
#main_logo {
    max-width: 250px;
}
.courses ul.primary-list li {
    margin-top: 0;
}
#video-bg {
    width: auto;
    height: auto;
    max-width: 100vw;
    max-height: 100vh;
}
.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    background: #000000;
}
.timer {
    width: 100%;
}
#timer {
    font-size: 30px;
}
#timer span {
    display: block;
    margin-top: -10px;
    font-size: 12px;
}
.timer-section {
    display: inline-block;
    border: 4px solid #d21e2b;
    margin: auto 10px;
    padding: 4px;
    width: 120px;
    font-size: 36px;
}
footer p {
    padding: 4px 0;
}
footer a {
  color: #302a5f;
}
footer a:hover {
    color: #d21e2b;
}
.footer-bar {
    position: absolute;
    width: 100%;
    left: 0;
    background-color: #312a62;
    margin-top: 40px;
    padding-bottom: 20px;
}
.features-section .feature-box-long p {
    min-height: 100px;
}
.features-section .feature-box-long h3 {
    min-height: 124px;
}
#gallery .col-md-10 {
    margin: auto;
}
.vertical-fixed {
    position: fixed;
    left: 10px;
    top: 40%;
}
.vertical-fixed ul li {
    padding: 10px;
}
.vertical-fixed img {
    max-width: 30px;
}
.partner-text h5 {
    color: #d21e2b;
    font-size: 40px;
    text-align: center;
}
.partner-text .primary-list li {
    font-size: 16px;
}
.notice-section {
    background-color: #302a5f;
}
.notice-section .social-icons {
    color: #000;
    float: none;
}
.notice-section .social-icons li {
    width: 60px;
    margin: 0 10px;
}
.notice-section .social-icons li.phone {
    width: 340px;
    font-size: 32px;
    color: #fff;
}
.notice-section .newsletter-form input {
    margin-top: 20px;
}
.youtube-video {
    margin: auto;
}
#sliders .col-md-6 .pr-30-md{
    padding: 120px 20px;
}
.blog-pagination {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #333333;
    justify-content: center;
    display: flex;
}
.blog-pagination li {
    float: left;
}
.blog-pagination li a {
    display: block;
    color: white;
    text-align: center;
    padding: 16px;
    text-decoration: none;
}
.blog-pagination li a:hover {
    color: #d21e2b;
}
.footer-social-icons ul li {
    background-color: transparent;
}
.footer-social-icons ul li a {
    padding: 0;
}
footer .logo {
    margin-left: -28px;
}
.project-grid-overlay h4 a {
    width: 100%;
}
.blog-section-bg {
    position: relative;
    background-image: url("/static/img/content/top-banner-1.jpg?7207ce84bda3");
    background-size: cover;
}
.blog-section-bg .container {
    position: relative;
}
#subscribe .social-area li {
    width: 200px;
    margin: 5px 20px;
}
#privacy-policy p {
    font-size: 16px;
    margin: 12px auto;
    padding: 0 10px;
}
#privacy-policy li {
    list-style-type: inherit;
}
#privacy-policy ul li {
    padding: 0 10px;
}
@media (max-width: 1350px) {
    .main-video-content .container {
        max-width: 960px;
    }
}
@media (max-width: 1200px) {
    .main-video-content .container {
        max-width: 600px;
    }
    .notice-section .social-icons li {
        width: 48px;
    }
    .social-icons .fa-4x {
        font-size: 3em;
    }
    .notice-section .social-icons li.phone {
        width: 296px;
        font-size: 26px;
    }
}

@media (max-width: 992px) {
    .scroll-to-top {
        right: auto;
        left: 20px;
        bottom: 20px;
    }
}

@media (max-width: 768px) {
    #amo-livechat #app {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .crm-form.callback-box {
        width: 100%;
        margin-left: -50%;
    }
    .blog-section-bg {
        background-position: 84%;
    }
    #subscribe .social-area li .primary-button {
        display: none;
    }
    .navigation-fixed-wrapper .navigation {
        margin-right: 0;
        margin-left: 0;
    }
    #sliders .container .row {
        display: -webkit-box;
        display: -moz-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-box-orient: vertical;
        -moz-box-orient: vertical;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        /* optional */
        -webkit-box-align: start;
        -moz-box-align: start;
        -ms-flex-align: start;
        -webkit-align-items: flex-start;
        align-items: flex-start;
    }
     #sliders .container .row .text-part {
        -webkit-box-ordinal-group: 1;
        -moz-box-ordinal-group: 1;
        -ms-flex-order: 1;
        -webkit-order: 1;
        order: 1;
    }
    #sliders .container .row .slider-part {
        -webkit-box-ordinal-group: 2;
        -moz-box-ordinal-group: 2;
        -ms-flex-order: 2;
        -webkit-order: 2;
        order: 2;
    }
    .vertical-fixed {
        display: none;
    }
    #main_logo {
        max-width: 260px;
    }
    .timer-section {
        width: 60px;
        border: 2px solid #d21e2b;
        margin: auto 5px;
        padding: 2px;
    }
    .social-icons .fa-4x {
        font-size: 6em;
    }
    .notice-section .social-icons li,
    .social-area li {
        width: 90px;
    }
    .social-area {
        width: 100%;
    }
    #sliders .col-md-6 .pr-30-md {
        padding: 10px 20px;
    }
    .crm-form .callback-box {
        width: 90%;
        left: 12%;
    }
    .crm-form .callback-box iframe {
        max-width: 90%;
        top: 50%;
    }
}