#mainbanner-block {
    margin-bottom: 30px;
    padding-bottom: 130px;
    position: relative;
}

#mainbanner-block .background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#mainbanner-block .background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./images/ten.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

#mainbanner-block .background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#mainbanner-block .background-image {
    height: 100%;
    width: 100%;
    position: absolute;
}

#mainbanner-block .background-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 127px;
    background: linear-gradient(180deg, rgba(36, 36, 46, 0) 0%, #24242e 100%);
}

#mainbanner-block .container {
    position: relative;
    z-index: 1;
}

#mainbanner-block .mainbanner-wrapper {
    width: 100%;
    height: 100%;
    min-height: fit-content;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

#mainbanner-block .maintext-wrapper {
    display: flex;
    flex-direction: column;
    margin-top: 200px;
    gap: 15px;
}

#mainbanner-block .description h5 {
    color: var(--second);
}

#mainbanner-block .count-price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    border-radius: 10px;
    padding: 30px;
    position: relative; 
    z-index: 2; 
    gap: 30px;
    max-width: 460px;
    margin-top: 200px;
    margin-left: -60px;
    transform: translateX(-40px);
}

#mainbanner-block .count-price-wrapper .btn_title {
    width: 100%;
}

#mainbanner-block .count-price-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(10px); 
    z-index: -10;
    border-radius: 10px;
}

#mainbanner-block .count-price-wrapper .count-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.count_title, 
.count_description {
    color: var(--second);
}


.btn-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  white-space: nowrap;
  height: fit-content;
  background-color: var(--primary); /* Начальный желтый фон */
  border-radius: 5px;
  outline: none;
  padding: 20px 40px;
  color: var(--head_primary); /* Начальный цвет текста */
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  line-height: 100%;
  
  /* Новая анимация */
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 50% {
    background: var(--primary);
    color: var(--head_primary);
  }
  50.01%, 100% {
    background: linear-gradient(180deg, #4f5166 0%, #62647d 100%);
    color: var(--second);
  }
}

/* Адаптивные стили */

@media (max-width: 1760px) {
    #mainbanner-block .count-price-wrapper::before,
    #mainbanner-block .count-price-wrapper {
        margin-left: 0
    }

    #mainbanner-block .count-price-wrapper {
        margin-left: 30px;
        transform: translateX(0px);
    }
}

@media (max-width: 1530px) {
    #mainbanner-block .maintext-wrapper {
        margin-left: 15px;
        margin-right: 15px;
    }
}

@media (max-width: 1200px) {
    #mainbanner-block .count-price-wrapper {
        margin-left: 20px;
        transform: translateX(0px);
    }

    #mainbanner-block h1 {
        font-size: 80px;
    }
}

@media (max-width: 992px) {
    #mainbanner-block .count-price-wrapper {
        margin-left: 20px;
        transform: translateX(0px);
        margin-top: 100px;
    }
    
    #mainbanner-block .background img {
        max-height: 800px;
    }
    
    #mainbanner-block .background-image {
        max-height: 800px;
    }

        #mainbanner-block h1 {
        font-size: 64px;
    }

    #mainbanner-block h5 {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    h1.page-title {
        font-size: clamp(36px, 8vw, 64px);
    }
    
    #mainbanner-block .count-price-wrapper {
        width: 100%;
        max-width: 100%;
        margin-top: 30px;
        padding: 20px;
        margin-left: 0;
        transform: none;
    }
    

    #mainbanner-block .background img {
        max-height: 600px;
    }
    
    #mainbanner-block .background-image {
        max-height: 600px;
    }

        #mainbanner-block {
        padding-bottom: 0;
    }
}

@media (max-width: 768px) {
    #mainbanner-block .count-price-wrapper::before {
        margin-left: 20px;
        margin-right: 20px;
    }
}

@media (max-width: 640px) {
            #mainbanner-block h1 {
        font-size: 48px;
    }

    #mainbanner-block h5 {
        font-size: 16px;
    }

    #mainbanner-block .count_title {
        font-size: 24px;
    }

    #mainbanner-block .count_description {
        font-size: 14px;
    }
}

@media (max-width: 600px) {
   #mainbanner-block .count-price-wrapper .btn_title {
    padding: 15px 30px;
    width: 90%;
    display: flex;
    align-self: center;
   }
}


@media (max-width: 576px) {

    #mainbanner-block .background img {
        max-height: 400px;
    }
    
    #mainbanner-block .background-image {
        max-height: 400px;
    }
    
    #mainbanner-block .background-image::after {
        height: 80px;
    }
}

@media (max-width: 480px) {

    /* #mainbanner-block .background,
    #mainbanner-block .background-image,
    #mainbanner-block .background::after,
    #mainbanner-block .background-image::after {
        display: none;
    } */
    
    /* #mainbanner-block .maintext-wrapper {
        margin-top: 40px;
    } */
    
    /* #mainbanner-block .count-price-wrapper {
        margin-top: 20px;
        padding: 15px;
    } */
}

@media (max-width: 480px) {
    #mainbanner-block h1 {
        font-size: 36px;
    }

    #mainbanner-block h5 {
        font-size: 14px;
    }

    #mainbanner-block .count_title {
        font-size: 20px;
    }

    #mainbanner-block .count_description {
        font-size: 12px;
    }
}

@media (max-width: 400px) {
    #mainbanner-block h1 {
        font-size: 32px;
    }

    
}



@media (max-width: 442px) {
    #mainbanner-block .maintext-wrapper {
        margin-top: 150px;
    }

    
}


@media (max-width: 360px) {
    #mainbanner-block .count-price-wrapper {
        padding: 20px;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    #mainbanner-block .count-price-wrapper {
        margin-top: 150px ;
    }
}