@font-face {
  font-family: "HelveticaNeue";
  src: url("../fonts/HelveticaNeueCyr-Roman.ttf");
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-family: "HelveticaNeue";

}

#d_1,
#d_2,
#d_3,
#l_1,
#l_2,
#l_3
{
  height:50px;
}
::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  white-space:pre-line;  
  position:relative;
  font-size: 16px;
  top:-7px;
}
::-moz-placeholder { /* Firefox 19+ */
  white-space:pre-line;  
  position:relative;
  top:-7px;
}
:-ms-input-placeholder { /* IE 10+ */
 white-space:pre-line;  
  position:relative;
  top:-7px;
}
:-moz-placeholder { /* Firefox 18- */
  white-space:pre-line;  
  position:relative;
  top:-7px;
}
.content-wrapper{
  margin-bottom: 200px;
  padding: 10px;
}
@media (max-width: 768px) {
  .content-wrapper{
    margin-bottom: 50px;
  }
}
h1{
  margin-bottom: 5%;
}

.hidden-element {
  display: none;
 }


.home-page-title{
  text-align: center;
}

@media (max-device-width: 770px) {
  .container {
    max-width: 100%;
  }
}




.grid-container  {
  display: grid; 
  grid-template-columns: 0.3fr 1fr 0.3fr; 
  grid-template-rows: 0.2fr 2.6fr 0.2fr; 
  gap: 10px 10px; 
  grid-template-areas: 
    "header-custom header-custom header-custom"
    "left-aside content-container right-aside"
    "footer footer footer"; 
}
.header-custom { grid-area: header-custom; }
.footer { grid-area: footer; }
.left-aside { grid-area: left-aside;}
.right-aside { grid-area: right-aside; }
.content-container { grid-area: content-container;}

.right-aside,
.left-aside{
  margin: 0 10px;
  display: flex;
  justify-content: center;
  overflow: hidden;
}
.right-aside img,
.left-aside img{
  height: auto;
  width: 100%;
  display: block;
  object-fit: cover;
}
@media (max-device-width: 770px) {
  .left-aside, .right-aside {
    display: none;
  }
  
  .grid-container  {
    grid-template-columns: 1fr;
    grid-template-areas: 
      "header-custom"
      "content-container"
      "footer"; 
  }
}


#top-banners-container{
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin: 0 auto;
  margin-bottom: 40px;
}
.card-banner,
.banner {
  max-width: 300px;
  max-height: 200px;
  overflow: hidden;
}
.card-banner img,
.banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

@media (min-width: 768px) {
  .banner {
      width: 48%;
  }
}

@media (min-width: 1024px) {
  .banner {
      width: 32%;
  }
}


/* HEADER */


.header-custom{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
}


.header-custom .right-panel {
    display: flex;
    justify-content: flex-end;
}

.company-name img{
  width: 100px;
  height: auto;
}
.left-panel{
  margin-right: 10px;
}
.center-panel{
  display: flex;
}
.right-panel{
  display: flex;
  flex-direction: row;
  align-items: center;
}
.social-icons{
  display: flex;
  margin-right: 100px;
}
.social-icons i {
  margin-left: 15px;
  font-size: 30px;
  color: #000000;
}
.company-name{
  margin-left: 100px;
}
@media (max-device-width: 770px) {
  .header-custom {
    justify-content: space-between;
  }

  .company-name{
    margin-left: 5px;
  }
  .company-name img{
    width: 60px;
    height: auto;
  }
  
}
@media (max-device-width: 576px) {
  .right-panel {
    margin-top: 20px;
  }
}
/* END HEADER */

/* LOGIN WINDOW AND BTN */
.custom_btn,
.btn_return,
.user_cabinet_btn,
.logout_btn,
.registration_btn,
.login_btn{
    text-decoration: none;
    color: #000000;
    border: 1px solid black;
    border-radius: 2px;
    padding: 5px 5px 5px 5px;
    margin-bottom: 30px;
}
#btn_open_registration_window,
#btn_logout{
  margin-left: 10px;
}
@media (max-device-width: 770px) {
  .custom_btn,
  .btn_return,
  .user_cabinet_btn,
  .logout_btn,
  .registration_btn,
  .login_btn{
      text-decoration: none;
      color: #000000;
      border: 1px solid black;
      border-radius: 2px;
      padding: 5px 5px 5px 5px;
      margin-bottom: 30px;
  }
  
}
/* END LOGIN WINDOW AND BTN */

/* BURGER MENU */
  .button_container {
    position: fixed;
    top: 3%;
    right: 2%;
    height: 27px;
    width: 35px;
    cursor: pointer;
    z-index: 102;
    transition: opacity .25s ease;
  }
  @media (max-device-width: 576px) {
    .button_container {
      top: 80px;
      right: 50px;
    }
  }
  .button_container:hover {
    opacity: .7;
  }
  .button_container.active .top {
    transform: translateY(11px) translateX(0) rotate(45deg);
    background: #000000;
  }
  .button_container.active .middle {
    opacity: 0;
    background: #000000;
  }
  .button_container.active .bottom {
    transform: translateY(-11px) translateX(0) rotate(-45deg);
    background: #000000;
  }
  .button_container span {
    background: #000000;
    border: none;
    height: 5px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: all .35s ease;
    cursor: pointer;
  }
  .button_container span:nth-of-type(2) {
    top: 11px;
  }
  .button_container span:nth-of-type(3) {
    top: 22px;
  }
  
  .overlay {
    position: fixed;
    background: #ffffff;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s, visibility .35s, height .35s;
    overflow: hidden;
    z-index: 100;
  }
  .overlay.open {
    opacity: .9;
    visibility: visible;
    height: 100%;
  }
  .overlay.open li {
    animation: fadeInRight .5s ease forwards;
    animation-delay: .35s;
  }
  .overlay.open li:nth-of-type(2) {
    animation-delay: .4s;
  }
  .overlay.open li:nth-of-type(3) {
    animation-delay: .45s;
  }
  .overlay.open li:nth-of-type(4) {
    animation-delay: .50s;
  }
  .overlay nav {
    position: relative;
    height: 70%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    font-weight: 400;
    text-align: center;
  }
  .overlay ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: inline-block;
    position: relative;
    height: 100%;
  }
  .overlay ul li {
    display: block;
    height: 25%;
    height: calc(100% / 4);
    min-height: 50px;
    position: relative;
    opacity: 0;
  }
  .overlay ul li a {
    display: block;
    position: relative;
    color: #000000;
    text-decoration: none;
    overflow: hidden;
  }
  .overlay ul li a:hover:after, .overlay ul li a:focus:after, .overlay ul li a:active:after {
    width: 100%;
  }
  .overlay ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0%;
    transform: translateX(-50%);
    height: 3px;
    background: #FFF;
    transition: .35s;
  }
  
  @keyframes fadeInRight {
    0% {
      opacity: 0;
      left: 20%;
    }
    100% {
      opacity: 1;
      left: 0;
    }
  }

/* END BURGER MENU */



/* CARDS SECTION */
#cards-section{
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}
#cards-section a{
  text-decoration: none;
}

.card-wrap {
    align-items: center;
    cursor: pointer;
    display: flex;
    height: 200px;
    justify-content: center;
    position: relative;
    width: 300px;
    margin: 5px;
    overflow: hidden;
}
.card-wrap-banner{
  align-items: center;
    cursor: pointer;
    display: flex;
    height: 200px;
    justify-content: center;
    position: relative;
    width: 300px;
    margin: 5px;
    overflow: hidden;
}
.card-wrap.card-1 {
  background: url('../image/calc_images/annual_heating_costs.webp') no-repeat ;
  background-size: 100% 100%;
}
.card-wrap.card-2 {
    background: url('../image/calc_images/heat_transfer_coefficient.jpg') no-repeat ;
    background-size: 100% 100%;
}

.card-wrap.card-3 {
    background: url('../image/calc_images/expansion_tank.webp') no-repeat ;
    background-size: 100% 100%;
}
.card-wrap.card-4 {
  background: url('../image/calc_images/heat_pump_capacity.webp') no-repeat ;
  background-size: 100% 100%;
}
.card-wrap.card-5 {
  background: url('../image/calc_images/pool.webp') no-repeat ;
  background-size: 100% 100%;
}
.card-wrap.card-6 {
  background: url('../image/calc_images/geofield.webp') no-repeat ;
  background-size: 100% 100%;
}
.card-wrap.card-7 {
  background: url('../image/calc_images/pipe_diametr.webp') no-repeat ;
  background-size: 100% 100%;
}
.card-wrap.card-8 {
  background: url('../image/calc_images/radiator.webp') no-repeat ;
  background-size: 100% 100%;
}

.card-wrap.card-9 {
  background: url('../image/calc_images/fancoil.webp') no-repeat ;
  background-size: 100% 100%;
}
.card-wrap.card-10 {
  background: url('../image/calc_images/conditioner_power.webp') no-repeat ;
  background-size: 100% 100%;
}
.card-wrap::after {
    background: rgb(246, 244, 244);
    content: "";
    height: 100%;
    opacity: 0;
    position: absolute;
    transition: all 300ms ease-in;
    width: 100%;
}
  
.card-wrap:hover::after,
.card-wrap:hover .project-title,
.card-wrap:hover .project-subtitle {
      opacity: 1;
    }
  
.project-title {
    color: rgb(0, 0, 0);
    display: block;
    font-size: 20px;
    font-weight: 600;
    opacity: 0;
    padding: 10px 0;
    z-index: 10;
    text-align: center;
}

.project-subtitle {
    color: rgb(0, 0, 0);
    display: block;
    font-size: 14px;
    font-weight: 300;
    opacity: 0;
    padding: 10px 0;
    z-index: 10;
}


.another-sites{
  display: flex;
  justify-content: center;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  margin-top: 50px;
}
  

/* END CARDS SECTION */

/* CABINET PAGE */
.cabinet_pay_btn{
  margin-top: 30px;
}

/* END CABINET PAGE  */

/* TERMS PAGE */


/* END TERMS PAGE */


/* PAYMENT PAGE */


.card {
  border: 1px solid black;
}

.card-header {
  color: white;
  background-color: black;
}

.pricing-column {
  padding: 3% 2%;
  text-align: center;
}

.btn-dark {
  background-color: black;
}

.btn-dark:hover {
  background-color: #343a40;
}
.pricing-column input{
  margin-bottom: 4%;
}
/* END PAYMENT  PAGE  */

/* CHECKOUT PAGE */

/* END CHECKOUT PAGE */

/* DETAIL PAGE */
.result-group .input-group-text,
.result-group .form-control,
.result {
    background-color: #a4f5c1 !important;
}
.form-check-label,
.input-group-text {
  display: inline-block;
  white-space: normal;
  word-wrap: break-word;
  font-size: 16px;
  font-weight: bold;
}
.form-check-input.first,
.input-group-text.form-select.first,
.input-group-text.first {
  max-width: 300px;
}

.input-group-text.second {
  max-width: 150px;
}

.vimeo-player iframe{
  width:100%;
  height:100%;
}



@media (max-width: 1400px) {
  .annual_heating_costs .row{
    display: block;
  }
  .input-group-text {
    font-size: 13px;
  }
  
  /* .input-group-text.first {
      width: 300px;
  } */

  .input-group-text.second {
      width: 150px;
  }
  #infoTable{
   font-size: 13px;
  }

}

@media (max-width: 576px) {
  .input-group-text.first {
    width: 150px;
  }
  .input-group-text.second {
    width: 100px;
  }
}

/* END DETAIL PAGE */


/* FOOTER */

#footer {
  background-color: #343a40;
  color: white;
  padding: 10px 0;
  text-align: center;
  z-index: 999;
}

.fixed-footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-column {
  flex: 1;
  padding: 10px;
}

.footer-column a {
  color: white;
  text-decoration: none;
  display: block;
  margin: 5px 0;
}

.footer-column img {
  max-width: 100px;
}

@media (max-width: 768px) {
  .fixed-footer {
    position: relative;
    width: 100%;
}
  .footer-container {
      flex-direction: column;
      align-items: flex-start;
  }

  .footer-column {
      width: 100%;
      padding: 10px 0;
  }

  .footer-column img {
      margin: 10px 0;
  }
}


/* @media (max-width: 768px) {

} */

/* END FOOTER */





#range-error,
#login-error{
  margin-bottom: 20px;
  color: red;
}


.text-calc-description{
  margin-top: 30px;
  font-size: 20px;
}
@media (max-width: 768px) {
  .text-calc-description{
    font-size: 16px;
  }
}





#container-long-table table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

#container-long-table thead th, 
#container-long-table tbody td {
  padding: 0.75rem;
  vertical-align: top;
}

#container-long-table thead th {
  background-color: #f8f9fa;
}
@media (max-width: 768px) {
  #container-long-table table, 
  #container-long-table thead, 
  #container-long-table tbody, 
  #container-long-table th, 
  #container-long-table td, 
  #container-long-table tr {
      display: block;
  }

  #container-long-table .tr-header {
      display: none;
  }

  #container-long-table tbody tr {
      margin-bottom: 1rem;
      display: flex;
      flex-direction: column;
  }

  #container-long-table tbody td {
      text-align: right;
      padding-left: 50%;
      position: relative;
  }

  #container-long-table tbody td::before {
      content: attr(data-label);
      position: absolute;
      left: 0;
      width: 50%;
      padding-left: 1rem;
      font-weight: bold;
      text-align: left;
  }
}


/* SUCCESS PAY PAGE */
.success-message-body{
  display: flex;
  flex-direction: column;
max-width: 300px;
background-color: #FFFFFF;
margin: 10% auto;
justify-content: center;
}
.success-message-head {
text-align: center;

}
.success-message-head h1, h2 {
  margin-bottom: 50px;
}

.checkmark-circle {
width: 150px;
height: 150px;
position: relative;
display: inline-block;
vertical-align: top;
}
.checkmark-circle .background {
width: 150px;
height: 150px;
border-radius: 50%;
background: #198754;
position: absolute;
}
.checkmark-circle .checkmark {
border-radius: 5px;
}
.checkmark-circle .checkmark.draw:after {
-webkit-animation-delay: 300ms;
-moz-animation-delay: 300ms;
animation-delay: 300ms;
-webkit-animation-duration: 1s;
-moz-animation-duration: 1s;
animation-duration: 1s;
-webkit-animation-timing-function: ease;
-moz-animation-timing-function: ease;
animation-timing-function: ease;
-webkit-animation-name: checkmark;
-moz-animation-name: checkmark;
animation-name: checkmark;
-webkit-transform: scaleX(-1) rotate(135deg);
-moz-transform: scaleX(-1) rotate(135deg);
-ms-transform: scaleX(-1) rotate(135deg);
-o-transform: scaleX(-1) rotate(135deg);
transform: scaleX(-1) rotate(135deg);
-webkit-animation-fill-mode: forwards;
-moz-animation-fill-mode: forwards;
animation-fill-mode: forwards;
}

.checkmark-circle .checkmark:after {
opacity: 1;
height: 75px;
width: 37.5px;
-webkit-transform-origin: left top;
-moz-transform-origin: left top;
-ms-transform-origin: left top;
-o-transform-origin: left top;
transform-origin: left top;
border-right: 15px solid #fff;
border-top: 15px solid #fff;
border-radius: 2.5px !important;
content: '';
left: 35px;
top: 80px;
position: absolute;
}

@-webkit-keyframes checkmark {
0% {
  height: 0;
  width: 0;
  opacity: 1;
}

20% {
  height: 0;
  width: 37.5px;
  opacity: 1;
}

40% {
  height: 75px;
  width: 37.5px;
  opacity: 1;
}

100% {
  height: 75px;
  width: 37.5px;
  opacity: 1;
}
}

@-moz-keyframes checkmark {
0% {
  height: 0;
  width: 0;
  opacity: 1;
}

20% {
  height: 0;
  width: 37.5px;
  opacity: 1;
}

40% {
  height: 75px;
  width: 37.5px;
  opacity: 1;
}

100% {
  height: 75px;
  width: 37.5px;
  opacity: 1;
}
}

@keyframes checkmark {
0% {
  height: 0;
  width: 0;
  opacity: 1;
}

20% {
  height: 0;
  width: 37.5px;
  opacity: 1;
}

40% {
  height: 75px;
  width: 37.5px;
  opacity: 1;
}

100% {
  height: 75px;
  width: 37.5px;
  opacity: 1;
}
}
/* END SUCCESS PAY PAGE */

/* AIR POWER PAGE */
.wall_wrapper{
  position: relative;
  border: 1px solid rgba(17, 17, 17, .1);
  border-radius: 3px;
  padding: 17px 20px;
  width: 100%;
  margin-bottom: 30px;
  margin-top: 30px;
  font-weight: bold;
  font-size: 18px;
  display: flex;
  flex-direction: column; 
}
.wall-calculate-title{
  position: absolute;
  top: -25px;
  left: 0px;
}
.air-wall-calculate-btn{
  display: flex;
  align-items: center;

}
.air-wall-calculate-btn a{
  text-decoration: none;
  cursor: pointer;
  color: #000000;
  font-size: 14px;
  margin-top: 20px;
}
.air-wall-calculate-btn i{
  color: #198754;
  margin-right: 10px;
  font-size: 20px;
}
/* .inline-inputs{
  display: flex;
  align-items: center;
  gap: 10px;
  
} */
.input-group {
  width: 100%; /* Встановлює ширину для input груп */
}
#air-wall-calculate-door-window{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.door-window-wrapper{
  width: 100%;
  display: flex;
  flex-wrap: wrap;
}


@media (width <=992px){
  .air-wall-calculate {
    padding: 10px;
}
  /* .inline-inputs{
    flex-direction: column;
  } */
}
/* END AIR POWER PAGE */