/* Smartphones (portrait and landscape) ----------- */

@media screen and (max-width: 575px) {
  .serv .item:nth-of-type(n+2) {
    margin-top: 15px;
  }
  .row-product p,
  .product-image {
    margin-bottom: 0;
  }

}

 @media screen and (min-width: 320px) and (max-width: 639px) {
    .carousel .background .caption h2 {
      font-size: 2em;
      line-height: 1.1
    }
    .carousel .background {
      min-height: 186px;
    }
    .row-product {
      padding: 0 5px;
    }
  }
@media screen and (min-width: 640px) and (max-width: 767px) {
  .carousel .background {
      min-height: 250px;
    }
}

@media only screen and (min-width: 320px) and (max-width: 767px) {
  .section  {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .who-we-are,
  .how-to-find-us {
    padding-top: 0;
  }
   .serv h2 {
    margin-bottom: 20px;
   }
  .main-header .navbar .navbar-nav {
    margin-top: 15px;
  }
  .main-header .navbar .navbar-nav > li + li {
    margin-left: 0;
  }
  .main-header .navbar .navbar-nav .nav-item {
    text-align: center;
  }
  .main-header .navbar .navbar-nav .nav-link:hover,
  .main-header .navbar .navbar-nav .active {
    color: #FFFFFF;
    background-color: #5C84B1;
  }
  .flex-partner{
    flex-direction: column;
    align-items: center;
  }
  .section h3 {
    font-size: 2em;
  }
  .section.appointment h3 {
    font-size: 1.6em;
  }
  .page-title .page-title-right {
    display: none;
  }
  .page-title h2 {
    font-size: 2.9em;
  }
  .carousel .background .caption {
    top: 50%;
  }
  .carousel .background .title-about {
    font-size: 2.5em;
    padding: 0 10px;
  }
  .carousel .background .caption h2 {
    margin-bottom: 0;
  }
  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }
  
  .serv .item {
    text-align: center;
  }
  .serv .item .item-icon {
    margin: 0 auto 10px auto;
  }
  .experts .row div:not(:first-child):not(:last-child) {
    margin-bottom: 50px;
  }
  .progress-section .row div.box + div.box {
    margin-top: 20px;
  }
  .testimonials .testimonial,
  .comments .testimonial,
  .testimonials .comment,
  .comments .comment {
    width: 100%;
  }
  .faq h3 {
    margin-bottom: 20px;
  }
  .faq .accordion .card-header,
  .faq .accordion .btn {
    padding-left: 0;
    font-size: 11px;
  }
  .info {
    margin-top: 30px;
  }
  .info .address a {
    font-size: 0.7em;
  }
  .comments q {
    font-size: 1em;
  }
  .choose .img-1,
  .choose .img-2,
  .choose .img-3 {
    width: 103px;
  }
  .choose .icon-box-horizontal,
  .choose .unit-spacing-md.unit {
    margin-left: 0;
  }
  .services.section {
    padding-bottom: 50px;
  }
  .our-services .row-low-serv {
    margin-bottom: 0;
  }
  .our-services .item-icon {
    margin: 10px auto;
  }
  .our-services .item {
    margin-bottom: 20px;
    text-align: center;
  }
  .section.advice {
    text-align: center;
  }
  .section.advice h3 {
    margin-bottom: 30px;
  }
  .bcg {
    min-height: 150px;
  }
   .main-footer .row-divider {
      margin-top: 10px;
    }
}
/* iPads (portrait and landscape) ----------- */
@media only screen and (min-width: 768px) and (max-width: 1023px) {
  .main-header .navbar .navbar-nav > li + li {
    margin-left: 30px;
  }
  .page-title .page-title-right {
    display: none;
  }
  .comments q {
    font-size: 1.2em;
  }
  .services.section {
    padding-bottom: 50px;
  }
  .section.advice {
    text-align: center;
  }
  .section.advice h3 {
    margin-bottom: 30px;
  }
  .bcg {
    min-height: 190px;
  }
}
@media only screen and (min-width: 1024px) and (max-width: 1199px) {
  .serv h2 {
    margin-bottom: 30px;
  }
  .choose .img-1,
  .img-2,
  .img-3 {
    visibility: hidden;
  }
  .who-we-are .col-lg-6 {
    padding-left: 25px;
  }
}
@media screen and (min-width: 1200px) {
  .carousel .background.item-1 {
     background-position: 50% -266px;
  }
}
@media screen and (min-width: 1450px) {
  .carousel .background.item-1 {
    background-size: 100%;
    background-position: 50% -310px;

  }
}
@media only screen and (max-width: 1199px) {
  .grid{
    grid-template-columns: repeat(3, 1fr)
  }

}
@media only screen and (max-width: 767px) {
  .grid{
      grid-template-columns: repeat(2, 1fr)
    }
   
  }
 

  @media only screen and (max-width: 480px) {
    .grid{
        grid-template-columns: repeat(1, 1fr)
      }
      .section h3{
        text-align: center;
      }
    }
/* Desktops and laptops ----------- */
/* Large screens ----------- */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
.mmm{
  display: flex;
  padding-top: 40px;
}

.marketing__svg{
max-width: 600px;
}

.mmm h3{
  font-size: 38px;
  background: rgb(59 134 135);
  padding: 30px;
  margin-left: -110px;
  max-height: 340px;
  color: #fff;
}
.marketing{
  padding: 40px 0;
}

.marketing h3{
  text-align: center;
  font-size: 35px;
  margin-bottom: 50px;
}

.marketing__list{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.marketing__item{
  display: flex;
  flex-direction: row;
  max-width: 500px;
  width: 100%;
  margin-bottom: 50px;
  /*background: rgba(0,0,0,.4);*/
  /*color: #ffffff;*/
  /*padding: 15px;*/
  color: #333333;
}
.marketing__item:nth-child(2n){
  margin-left: 100px;
}
.marketing__img{
  width: 64px;
  height: 64px;
  flex-shrink: 1;
}
.marketing__item-info{
  font-size: 18px;
}
.marketing__item-title{
  font-weight: bold;
  font-size: 24px;
  font-family: "Kanit", "Times New Roman", Times, serif;
  margin-bottom: 5px;
}
.marketing__item-text{

  padding-left: 20px;
}

.help{
  padding: 100px 0;
}
.help__title{
  font-size: 28px;
  margin-bottom: 75px;
  text-align: center;
}

.help__title:last-child{
  margin-bottom: 0;
}
.help__list{
  display: flex;
  justify-content: space-between;
  padding: 0;
  position: relative;
  margin-bottom: 75px;

}
.help__list:before{
  content: '';
  position: absolute;
  top: 150px;
  left: 0;
  width: 100%;
  height: 5px;
  background: #333;
}

.help__item{
list-style-type: none;
  position: relative;
  padding: 20px;
  width: 270px;
  height: 106px;
  border: 2px solid #333;
}
.help__item:nth-child(2n):after{
  top: auto;
  bottom: 100%;
}
.help__item:nth-child(2n):before{
  top: -55px;
}
.help__item:nth-child(2n){
  margin-top: 200px;
}
.help__item:before{
  content: '';
  position: absolute;
  top: 146px;
  left: calc(50% - 5px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #333;
  box-shadow: 0 0 1px 4px black;
  background: #fff;
  z-index: 1;
}
.help__item:after{
  content: '';
  width: 2px;
  height: 50px;
  background: #333;
  position: absolute;
  top: 100%;
  left: calc(50% - 1px);
}
.help__item-title{
  font-weight: bold;
  font-size: 25px;
  font-family: "Kanit", "Times New Roman", Times, serif;
  color: #333333;
}
.help__item-additional{
  font-size: 18px;
  color: #333333;
}

.navbar-nav{
  /*background: #2b2f40;*/
  /*padding: 0 40px;*/
}
.nav-link{
  color: #ffffff !important;
  font-weight: bold !important;
  background: #2b2f40;
  padding: 5px 15px !important;
}
.nav-link:hover{
  background: rgb(59 134 135);
}
.main-header .navbar .navbar-nav > li + li{
  margin-left: 15px;
}
.carousel .background.item-1{
  background: #3b8687;
  padding: 50px 0;
  text-align: center;
}
.carousel .background .after{
  display: none;
}
.carousel .background .title-about{
  color: #fff;
  margin: 0 auto 35px;
}
.img-cont{
  padding: 50px;
  background: #fff;
  max-width: 600px;
  margin: auto;
}
.img-cont img{
  max-width: 100%;
}
.carousel .background .caption{
  position: static;
  transform: none;
}

.info{

}
.cont-block{
  background: #3b8687;
  padding: 25px;
  color: #ffffff;
}

.contacts h3, .contacts h5, .contacts .contact-info p{
  color: #ffffff;
}
.btn-primary{
  background: #2b2f40;
}

.police{
  text-align: left;
  margin-top: 0;
  display: flex;
  flex-direction: row;
  margin-bottom: 25px;
}
.police li{
  margin-right: 35px;
}