/* banner */
html, body{
    font-family: roboto;
    width:100%;
    padding:0;
    margin:0;
}

:root {
  --color-btn-primary: #27a258;
  --color-text-white: #ffffff;

     /* Зеленая шкала */
  --green-900: #0b4525; /* самый тёмный — active / dark bg */
  --green-700: #0b4525; /* тёмный — hover */
  --green-500: #1f8f4e; /* основной — default */
  --green-300: #27a258; /* светлый — accent / highlight */
}
.btn-primary-custom {
  background-color: var(--green-500);
  color: #ffffff;
  border: none;
}

.btn-primary-custom:hover {
  background-color: var(--green-700);
  color: #ffffff;
}

.btn-primary-custom:active {
  background-color: var(--green-900);
}

.btn-primary-custom {
  background-color: var(--green-500);
  color: var(--color-text-white);
  /*position: absolute;*/
}

.banner-section {
  margin-top: -16px;
  background-size: cover;
  background-position: center;
}

.btn-primary-custom:hover {
  background-color: #318955; /* чуть темнее */
  color: #ffffff;
}


.banner-section {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 90px 0;
  position: relative;
  height: 100%;
}
.banner-section::after {
  bottom: 0;
  content: "";
  height: 7px;
  left: 0;
  position: absolute;
  right: 0;
}
.banner_content {
  width: 470px;
  float: right;

}
.banner_content h1 {
  color: var(--green-700);
  font-size: 34px;
  line-height: 50px;
}

  .banner_content button{
    width:370px;
    position: absolute;
  }
  /* /banner */

.commends-1 h2 {
  color: var(--green-700);
  font-size: 34px;
  line-height: 50px;
  text-align:center!important

}

/*project*/
.project{
    border-bottom: 2px solid #00442B;
    padding-bottom: 30px;
    box-shadow: 0 4px 8px 0 #00442B;
}
  /*home news*/
.cardd{
  position: relative;
  width: 300px;
  height: 400px;
  background: #fff;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: 0 4px 8px 0 #28B463;
  float: left;
  margin-left: 20px;
  margin-bottom: 20px;
}
.cardd:before,
.cardd:after
{
  content:"";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background: #fff;
  transition: 0.5s;
  z-index:-1;
}
.cardd:hover:before{
transform: rotate(20deg);
box-shadow: 0 2px 20px rgba(0,0,0,.2);
}
.cardd:hover:after{
transform: rotate(10deg);
box-shadow: 0 2px 20px rgba(0,0,0,.2);
}
.cardd .imgBx{
position: absolute;
top: 10px;
left: 10px;
bottom: 10px;
right: 10px;
background: #222;
transition: 0.5s;
z-index: 1;
}

.cardd:hover .imgBx
{
  bottom: 100px;
}

.cardd .imgBx img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cardd .details{
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    height: 60px;
    text-align: center;
}

.cardd .details p{
 margin: 0;
 padding: 0;
 font-weight: 600;
 font-size: 12px;
 color: #777;
 text-transform: uppercase;
}
.cardd .title{
     position: absolute;
     margin: 0;
     padding: 0;
     margin-top:230px;
     background: #0000007a;
}
.cardd .title h2{
     font-size: 16px;
     color: #fff;
}
@media only screen and (max-width: 991px) {
  .box{
    width: 100%;
  }
}
  /*/home news*/
/* navbar menu */

.navbar-nav{
    margin-left:13%;
    margin-right:13%;
}
/* / navbar menu */

.card{
   margin: auto;
}
.card-text img{
   width: 100%;
}
.form-error{
    color: red;
}


#nodes{
  position: absolute;
  margin-top: -90px;
  height: 100%;
  width: 100%;
}

.menu li{
    list-style: none;
}
.menu li a{
    color: #fff;
    margin-left: 15px;
    margin-right: 15px;
    text-decoration: none;

}

.navbar-brand .nav-link{
    border-block-style: solid;
    border-block-color: #28B463;
    color: #fff !important;
}

.active a:hover{
    color: #00442B;
}
@media only screen and (max-width: 1218px) {
    .graph{
    display: block;
    }
}
.page-item a{
    background: #28B463;
    color: #fff;
}

/*slider*/
.commends{
    border-top: 2px solid #28B463;
}
.commends-1{
    background: #00000080;
    padding: 20px;
}


  .container1 img {
    vertical-align: middle;
    width: 100%;
  }

  /* Position the image container (needed to position the left and right arrows) */
  .slide{
    width: 50%;
  }

  .container1 {
    position: relative;
    width: 100%;
  }

  /* Hide the images by default */
  .mySlides {
    display: none;
  }

  /* Add a pointer when hovering over the thumbnail images */
  .cursor {
    cursor: pointer;
  }

  /* Next & previous buttons */
/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 40%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}
.prev{
    margin-left: -50%;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

  /* On hover, add a black background color with a little bit see-through */

  /* Number text (1/3 etc) */

  /* Container for image text */
  .caption-container {
    text-align: center;
    background-color: #222;
    padding: 2px 16px;
    color: white;
    width: 100%;
  }
  .row1{
    width: 100%;
    display: flex;
  }
  .row1:after {
    content: "";
    display: table;
    clear: both;
  }

  /* Six columns side by side */


  .column img{
    width: 100%;
  }


  /* Add a transparency effect for thumnbail images */
  .demo {
    opacity: 0.6;
  }

  .active,
  .demo:hover {
    opacity: 1;
  }

  /*detai*/
  details {
  width: 50%;
  margin: 0 auto ;
  background: #fff;
  margin-bottom: .5rem;
  box-shadow: 0 .1rem 1rem -.5rem rgba(0,0,0,.4);
  border-radius: 5px;
  overflow: hidden;
}
details p{
    margin-left: 20px;
    margin-right: 20px;
}

summary {
  padding: 1rem;
  display: block;
  background: #28B463;
  padding-left: 2.2rem;
}

summary:before {
  content: '';
  border-width: .4rem;
  border-style: solid;
  border-color: transparent transparent transparent #fff;
  position: absolute;
  top: 1.3rem;
  left: 1rem;
  transform: rotate(0);
  transform-origin: .2rem 50%;
  transition: .25s transform ease;
}

/* THE MAGIC 🧙‍♀️ */
details[open] > summary:before {
  transform: rotate(90deg);
}


details summary::-webkit-details-marker {
  display:none;
}

details {
  padding-bottom: 1rem;
  margin-bottom: 0;
}

.header_image{
    padding: 20px;
    display: flex;
    width: 500px;
    margin: auto;
}

.header_image a{
    margin-left: 10px;
}
.header_image img{
    width: 100%;
    margin-bottom: 10px;
    margin-left: 10px;
}
.form-message{
    width: 600px;
}


/*Consultants*/
.consultants{
  overflow: hidden;
  margin-left:15%;
  margin-right:15%;
}
.card-consultant {
    box-shadow: 0 4px 8px 0 #28B463;
    max-width: 300px;
    margin: auto;
    text-align: center;
    float: left;
    width: 92%;
    height: 370px;
    padding: 15px;
    margin-left: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
  }
  .card-consultant h3{
    margin-top: 10px;
    color: #28B463;
    font-size: 18px;
  }
  .card-consultant p{
    color: grey;
    font-size: 15px;
  }
  .card-consultant img{
    width: 100%;
  }

.graph{
    display: flex;
}
.img-fluid{
    margin-left: 10px;
    margin-bottom: 10px;
}

/* popular news */
.popular{
  overflow: hidden;
  margin-left:15%;
  margin-right:15%;
}

.card-popular {
   box-shadow: 0 4px 8px 0 #28B463;
   max-width: 300px;
   margin: auto;
   text-align: center;
   float: left;
   width: 91%;
   padding: 15px;
   margin-left: 20px;
   margin-top: 20px;
   margin-bottom: 20px;
}
.card-popular p{
  color: grey;
  font-size: 15px;
}
.card-popular img{
  width: 100%;
}
.list-unstyled li img{
  width: 20px;
}
@media only screen and (max-width: 992px) {
    .img-fluidd{
        width: 98%;
    }
}
@media only screen and (max-width: 910px) {
    .form-message{
        width: 300px;
        margin-left: -10px;
    }
    .container1{
        width: 350px;
        margin-left: -70px;
    }
    .header_image{
        display: inline-block;
        width: 250px;
    }
    .header_image img{
        margin-bottom: 10px;
    }
    .menu li{
        font-size: 18px;
    }
    .graph{
        display: inline;
        margin-left: 10px;
    }
    .table {
        font-size: 10px;
        width: 90%;
    }
    .nav-link img{
       display: none;
    }
    .nav-link small{
        display: none;
    }
    .card-body h5{
        font-size: 14px;
    }
    .card-body p{
        font-size: 13px;
    }
     .card-body img{
        width: 220px;
    }
    .banner_content h1{
        font-size: 30px;
        margin-left: 30px;
    }
    .card-text img{
        width: 100px;
    }
    details{
        width: 95%;
    }
    .consultants{
       width: 75%;
       margin-left: 40px;
    }
    .header_image{
        margin-left: -25px;
    }
     .comments img{
        width: 80%;
    }
    .modal-body img{
        margin-left: 50px;
    }
    .consultant-img{
        margin-left: 50px;
    }
    .video{
        width: 85%;
    }
}
