/*header-----------------------------------*/
.fixed-top {
    padding-left: calc(var(--bs-gutter-x)* 0.5) !important;
    padding-right: calc(var(--bs-gutter-x)* 0.5)!important;
}

/*заголовки секций-------*/
.headers{
    margin-bottom: 30px;
}
/*секция пирамида дом---------------------------*/
.col-md-6.ms-auto.text-center{
    color: #fff;
}

/*убераем отступы в span*/
.text-uppercase.fw-bold>span.h6 {
   display: inline-block;
   margin-top: 20px;
   line-height: 135% !important;
}
.btn-primary a{
 color: #fff;
 text-decoration: none; 
}
.btn-outline-primary{
    background-color: #0d6efd;
    color: #fff;
    border: none;
}
/*анимация для кнопок*/
.btn-outline-primary {
    position: relative;
    border: none;
    overflow: hidden;
}
.btn-outline-primary::before {
  content: "";
  position: absolute;
  /*Сдвигает элемент вниз на -50% собственной ширины*/
  bottom: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.2) 100%
  );
  border-radius: 50%;
  animation: shineDiagonal 2.5s infinite;
  pointer-events: none; /* чтобы не мешал клику */
}
@keyframes shineDiagonal {
  0% {
    transform: translate(-100%, 100%);
  }
  100% {
    transform: translate(80%, -80%);
  }
}
.btn-outline-primary:hover{
    background-color: #0b5ed7;
}

/*секция(наши проекты)----------------*/
.container-fluid.p-0 {
    position: relative;
}
.cards-container {
    overflow: hidden;
}

/*секция калькулятор--------------*/
.calculator-block {
    text-align: center;
    padding: 50px 20px;
}
.calculator-block h2 {
    font-size: clamp(1.7em, 4vw, 2.5em);
    color: #333;
    margin-bottom: 20px;
}
.calculator-block p {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 30px;
}
.calculator-images {
  flex-wrap: nowrap;
  justify-content: space-between;
  margin-bottom: 50px;
}
.calculator-images a{
  padding: 0;
  border-radius: 8px;
  width: 31.33%;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.calculator-images a:target{
  outline: none;
}
.calculator-images a .overlay {
  background-color: rgba(0,0,0,0.4);
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.calculator-images a:hover .overlay {
  opacity: 0.4;
}

.img-fluid img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.calculator-images b{
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: #0d6efd;
  color: #fff;
  width: 100%;
  transition: all 0.2s ease-in;
}
#additional-work b span.short-text{
  display: none;
}

/*слайдер--------------------------------------*/
/*первое окно слайдера для кнопок*/
.cards-container{
    position: relative;
    padding: 0 20px;
}
/*второе окно слайдера для img*/
.cards-wrapper {
  overflow: hidden;
  height: 400px;
  border-radius: 10px;
}
/*полоса*/
.slider-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
    height: 100%;
}
/*элементы в полосе*/
.card_projects {
  position: relative;
  box-sizing: border-box;
  margin-right: 20px;
  flex: 0 0 calc((100% - 20px) / 3);
  overflow: hidden;
}
/*изображения*/
.card_projects > a > div {
  height: 100%;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
}
.card_projects > a > div img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/*кнопки*/
.card-left, .card-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: #32c5e9;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 20px;
}
.card-left { left: 0.2%; }
.card-right { right: 0.2%; }
.card-left:hover, .card-right:hover {
      background-color: #14a7cb;
}
/*заголовок на img(slider)-----------*/
h3.display-6{
    font-size: 20px;
    color: lawngreen !important;
}
/*8 заголовок*/
.card_projects:nth-child(8) h3.display-6{
    text-align: center;
}
.pt-2{
    line-height: 125%;
}
/*уменьшенный отступ от заголовка(slider)*/
.mb-4 {
    margin-bottom: 1.0rem !important;
}

/*секция(этапы ст-ва дома)----------------------------------*/
.p-0.stages{
    padding: 50px 0 0 0 !important;
}
.stage-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    border: 1px solid #f2e7e7;
    padding: 22px;
    border-radius: 22px;
    transition: all 0.3s ease;
    position: relative;
    background: white;
}
.stage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(253, 126, 20, 0.1);
}
.row.position-relative {
    align-items: stretch;
}
.stage-icon {
    width: 70px;
    height: 70px;
    background: #ffc20e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: white;
    transition: transform 0.3s ease;
}
.stage-number {
    position: absolute;
    top: 5px;
    right: 6px;
    background: rgb(13 110 253 / 24%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
.stage-title {
    color: #2d2d2d;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.2rem;
}
.stage-description {
    color: #6c757d;
    line-height: 1.6;
}

/*кнопка для прокрутки страницы в самое начало*/
.scroll-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 44px;
  height: 44px;
  padding-top: 6px;
  border: none;
  border-radius: 50%;
  background-color: #0d6efd;
  z-index: 1000;
  display: none;
  opacity: 0.75;
  transition: opacity 0.3s;
}
.scroll-top span{
  display: inline-block;
  width: 2px;
  background-color: #fff;
}
.scroll-top span:nth-child(1){
    height: 10px;
    transform: rotate(45deg) translate(-6px, -8px);
}
.scroll-top span:nth-child(2){
  height: 20px;
}
.scroll-top span:nth-child(3){
    height: 10px;
    transform: rotate(-45deg) translate(5.2px, -8px);
}
.scroll-top:hover {
  opacity: 1;
}


/*секция пирамида дом@media-------------------------*/
@media(max-width: 1200px){
	.col-md-6.ms-auto.text-center{
        justify-content: center !important;
    }
}
@media (max-width: 991px){
	.container-fluid.p-0:nth-of-type(1) {
        padding: 0px 0 10px 0 !important;
    }
}
@media(max-width: 426px){
  .container-fluid.p-0:nth-of-type(1) > div {
        height: 70vh !important;
    }
    .col-md-6.ms-auto.text-center {
         position: relative;
         top: 30px;
     }
   .calculator-block p{
    font-size: 1em;
   } 
}

/*секция калк-------------------------------------*/
@media (max-width: 991px){
	.calculator-block{
        padding: 0px 20px 20px 20px;
    }
}
@media (max-width: 769px){
    .calculator-images.row+a{
        font-size: 2.5vw;
    }
    #additional-work b span.full-text{
      display: none;
    }
    #additional-work b span.short-text{
      display: inline;
    }
    /*уменьшаем img в калке*/
    .col-md-4{
        max-width: 50%;
    }
    /*временно--------------------------------------------*/
    .col-md-4 {
         max-width: none; 
    }
}
@media (max-width: 576px){
	.calculator-block{
        padding: 0px 0px 20px 0;
    }
    .calculator-block>h2{
         margin-bottom: 10px;
    }
    .calculator-block>p{
        line-height: 110%;
        margin-bottom: 20px;
    }
    .calculator-images{
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px;
      margin-bottom: 20px;
    }
    a.img-fluid{
      width: 80%;
    }
    .calculator-images.row+a{
        font-size: 3vw;
    }
}

/*слайдер@media------------------------------------------*/
@media (max-width: 991px){
/*по 2 изображения*/
    .card_projects { flex: 0 0 calc(100%/2); }
}
@media (max-width: 768px){
	.text-center.display-4:nth-of-type(1) {
        margin-bottom: 20px;
    }
	/*будет по два изображения в слайдере*/
    .card_projects { flex: 0 0 calc(100%/1);}
    /*элементы на img*/
    .slider-track>.col .d-flex{
        text-align: center;
    }
}
@media(max-width: 350px){
  h3.display-6 {
    font-size: 18px;
  }
  .pt-2 {
    line-height: 100%;
  }
}
@media(max-width: 321px){
  .card-left, .card-right{
    padding-bottom: 3px;
  }
  .card-left{
    left: 1%;
  }
  .card-right{
    right: 1%;
  }
}

/*секция этапы дома-----------------------------------*/
@media(max-width: 991px){
 .p-0.stages {
     padding: 30px 0 0 0 !important;
 }
}
@media (max-width: 768px){
	 .text-center.display-4:nth-of-type(2) {
        margin-bottom: 20px;
    }
    .stage-card{
        justify-content: center;
    }
}
@media (max-width: 576px){
	.p-0.stages {
        padding-top: 20px !important;
    }
    .row.position-relative {
        flex-direction: column;
        align-items: center;
    }
    .row.position-relative>div{
        max-width: 90%;
    }
    .stage-card{
        text-align: center;
    }
}
@media (max-width: 321px){
  .stage-description{
    line-height: 1.2;
    margin-bottom: 0rem;
  }
}