/* Калькулятор CTR */
.ctr-calculator {
   max-width: 100%;
   margin: 30px auto;
   position: relative;
   overflow: hidden;
   border-radius: 7px;
   padding: 20px 23px;
   transition: all 0.3s ease;
   background: #232a3e;

}

.ctr-calculator__title {
   text-align: left;
    margin: 0!important;
   margin-bottom: 30px!important;
   text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
   font-weight: 700!important;
   font-size: 20px!important;
   line-height: 150% !important;
   color: #fff!important;
   z-index: 2!important;
   position: relative!important;
}

.ctr-calculator__content {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.ctr-calculator__input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ctr-calculator__label {
   margin-bottom: 8px;
   text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
   font-weight: 400;
   font-size: 14px;
   line-height: 150%;
   color: #fff;
}

.ctr-calculator__input {
   background: #ffffff;
   border: none;
   border-radius: 7px;
   padding: 15px;
   box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
   transition: all 0.3s ease;
   height: 45px;
   font-weight: 400;
   font-size: 15px;
   line-height: 150%;
   color: #1f2b45;
}

.ctr-calculator__input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3), 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.ctr-calculator__input::placeholder {
    color: #999;
    font-weight: 400;
}

.ctr-calculator:before {
   content: '';
   position: absolute;
   background-image: url("data:image/svg+xml,%3Csvg width='120' height='114' viewBox='0 0 120 114' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0 40.1961L10.788 21.2266H31.3914L20.6099 40.1799L40.5046 74.4871L66.434 74.2679L84.5743 42.9868L94.9769 60.5806L94.9598 60.6087L76.736 92.0351L40.4625 92.335L40.4463 92.3093L30.2705 92.3931L0 40.1961Z' fill='url(%23paint0_linear_2744_15711)' /%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M108.813 0L119.969 18.6473L109.623 36.2804L98.4775 17.646H58.5149L45.6852 39.9462L63.9046 70.9969L43.3117 71.1666L43.2955 71.1377L24.9922 39.943L42.9416 8.75134H42.9733L48.0108 0H108.813Z' fill='%234AB1FE' /%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M114.816 52.42L114.831 52.3909L96.4704 21.2266H60.1005H60.065L49.9844 39.0156H86.1901L99.3194 61.2938L79.4668 95.6483L57.6308 95.8294L67.9111 113.618L89.7592 113.434L119.967 61.1638L114.816 52.42Z' fill='url(%23paint1_linear_2744_15711)' /%3E%3Cdefs%3E%3ClinearGradient id='paint0_linear_2744_15711' x1='-0.219879' y1='21.6281' x2='76.8245' y2='90.1022' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23F97695' /%3E%3Cstop offset='1' stop-color='%23FEDD44' /%3E%3C/linearGradient%3E%3ClinearGradient id='paint1_linear_2744_15711' x1='84.9225' y1='113.56' x2='71.9454' y2='21.0587' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23F3648A' /%3E%3Cstop offset='1' stop-color='%23FF83D4' /%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E");
   width: 119px;
   height: 119px;
   background-position: center;
   background-repeat: no-repeat;
   background-size: contain;
   right: 63px;
   top: 23px;
}

.ctr-calculator__result {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ctr-calculator__value {
   text-align: center;
   font-weight: 600;
   font-size: 25px;
   line-height: 150%;
   color: #fff;
}

.ctr-calculator__result .ctr-calculator__label {
   font-weight: 700;
   font-size: 25px;
   line-height: 150%;
   color: #fff;
}

/* Анимация для логотипа */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@media (max-width: 991px) {

   .ctr-calculator__content {
      flex-direction: column;
      gap: 15px;
      flex-wrap: nowrap;
      align-items: flex-start;
  }

   .ctr-calculator__input-group {
      width: 100%;
   }

}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .ctr-calculator {
        padding: 20px;
        margin: 20px 0;
    }
    
    .ctr-calculator__content {
        flex-direction: column;
        gap: 15px;
        flex-wrap: nowrap;
    }
    
    .ctr-calculator__input-group,
    .ctr-calculator__result {
        width: 100%;
    }
    
    .ctr-calculator__title {
        font-size: 20px;
        margin-bottom: 20px;
        padding-right: 70px;
    }

    .ctr-calculator:before {
      width: 60px;
      height: 60px;
      right: 20px;
    }
    
   
}

/* Эффект при наведении */
.ctr-calculator:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

/* Анимация появления */
.ctr-calculator {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 