
.calc {
  margin: 0;
  padding: 70px 0;
  display: flex;
  justify-content: center;
  width: 100%;
  background: linear-gradient(130deg, #001a2e 0%, #013d5f 45%, #036f99 100%);
  position: relative;
}
.calc .container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: stretch;
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  z-index: 1;
}
.calc .text {
  flex: 1 1 280px;
  width: auto;
  max-width: 440px;
}
.calc .text h3 {
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.calc .text p {
  font-size: 20px;
  line-height: 30px;
  margin: 30px 0 40px;
  color: rgba(255, 255, 255, 0.82);
}
.calc .text .btn1 {
  background: #ecb731;
  border-radius: 999px;
  padding: 14px 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #081523;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.calc .text .btn1:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 35px rgba(236, 183, 49, 0.35);
}
.calc .calcul {
  /* flex: 1 1 480px; */
  width: auto;
  background-color: rgba(255, 255, 255, 0.06);
  display: flex;
  min-height: 360px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 24, 38, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}
.calc .calcul .profit {
  background: linear-gradient(180deg, #031623 0%, #012940 45%, #00557e 100%);
  color: #fff;
}
.calc .invest {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 24px;
  font-weight: 700;
  gap: 12px;
}
.calc .invest input {
  font-size: 18px;
  font-weight: 600;
  min-width: 140px;
  max-width: 200px;
  max-height: 44px;
  text-align: center;
  border-radius: 40px;
  border: 1px solid rgba(6, 55, 79, 0.15);
  background-color: #fff;
  padding: 8px 16px;
  color: #032033;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}
.calc .dep,
.calc .profit {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;
}
.calc .dep {
  padding: 32px 36px;
  min-width: 280px;
  background: #fff;
}
.calc h3 {
  text-align: left;
  font-size: 36px;

  font-weight: 700;
}
.calc .dep h4 {
  font-size: 22px;
  font-weight: 700;
  color: #013149;
  letter-spacing: 0.02em;
}
.calc .profit {
  width: 50%;
  padding: 40px 36px;
  min-width: 260px;
  gap: 24px;
}

.calc .scale {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}
.calc .scale input {
  width: 100%;
  margin: auto;
}
/* Стиль для контейнера шкали */
.scale {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
}

/* Стиль для input[type="range"] */
.range {
  width: 100%;
  appearance: none;
  height: 6px;
  background: rgba(3, 41, 63, 0.12);
  border-radius: 999px;
  outline: none;
}
.bars {
  width: 100%;
  position: relative;
}

.range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px; /* Висота повзунка */
  background: transparent; /* Прозорий фон, щоб бачити bar */
  outline: none; /* Сховати контур */
  z-index: 2; /* Повзунок зверху */
}

/* Оформлення повзунка */
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background-color: #ecb731;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  z-index: 3;
  box-shadow: 0 6px 16px rgba(7, 31, 44, 0.35);
}

.range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background-color: #ecb731;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 6px 16px rgba(7, 31, 44, 0.35);
}

/* Оформлення заповненої смуги */
.bar {
  background: linear-gradient(90deg, #ecb731, #ffdf89);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%); /* Вирівнювання по центру */
  height: 8px; /* Висота заповненої смуги */
  width: 0; /* Початкова ширина 0 */
  border-radius: 5px;
  transition: width 0.2s ease;
}

/* Рисочки і цифри під шкалою */
.range-label {
  width: 100%;
  display: flex;
  justify-content: space-between;
  text-align: center;
}
.range-labels {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  position: relative;
  top: 10px; /* Відступ від шкали */
}

.labels {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
}
.label {
  font-size: 14px;
  color: #0a2231;
  text-align: right;
  font-weight: 600;
}

/* Рисочки (ticks) */
.tick {
  width: 1px;
  height: 8px;
  background-color: #333;
  position: relative;
  top: -10px;
}
.btnss {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.btn2,
.btn0 {
  border-radius: 999px;
  padding: 12px 22px;
  border: 1px solid rgba(3, 31, 45, 0.1);
  font-size: 16px;
  line-height: 18px;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  background: #f7fbff;
  color: #03253a;
  font-weight: 600;
}
.btn0 {
  background-color: #f7fbff;
}
.btn2 {
  color: #031b2b;
  background: linear-gradient(120deg, #ecb731, #ffd676);
  border-color: transparent;
  box-shadow: 0 14px 32px rgba(8, 21, 35, 0.2);
}
.btnss button {
  width: 100%;
}

.profit {
  padding: 30px 0;
}
.profit div {
  width: 100%;
  margin-left: 0;
}
.profit span {
  font-size: 14px;
  text-align: left;
  opacity: 0.7;
}
.profit div:first-child h5 {
  color: #ecb731;
}
.profit h5,
.profit h5 span {
  font-size: clamp(30px, 4vw, 46px);
  text-align: left;
  font-weight: 600;
  margin: 6px 0 0;
}
@media screen and (max-width: 1024px) {
  .calc {
    padding: 30px 0;
  }
  .calc .container {
    gap: 24px;
  }
  .calc .calcul {
    border-radius: 20px;
  }
}

@media screen and (max-width: 768px) {
  .calc .container {
    flex-direction: column;
  }
  .calc .text {
    max-width: 100%;
    padding: 0 5px;
  }
  .calc .text h3 {
    font-size: 28px;
    line-height: 36px;
  }
  .calc .text p {
    font-size: 18px;
    line-height: 26px;
  }
  .calc .calcul {
    flex-direction: column;
  }
  .calc .dep,
  .calc .profit {
    width: 100%;
  }
  .calc .profit,
  .profit h5 {
    text-align: center;
    align-items: center;
  }
  .profit div {
    margin: 0;
    align-items: center;
    text-align: center;
  }
}

@media screen and (max-width: 540px) {
  .calc {
    padding: 20px 0;
  }
  .calc .calcul {
    border-radius: 16px;
  }
  .calc .invest {
    font-size: 20px;
  }
  .calc .invest input {
    width: 100%;
    max-width: none;
  }
  .btnss {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}