:root {
  --color-bg: #f2f5f8;
  --color-bg-g: rgba(10,30,50,.1);
  --color-text: #1d3448;
  --color-w: #ffffff;
}

.newCalc {
  padding: 40px;
  background: var(--color-bg);
  border-radius: 20px;
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: 48px;
}

.newCalc__title {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-text);
}
.newCalc__block-second {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border-radius: 12px;
  background-color: var(--color-w);
}
.newCalc__block-results .newCalc__title {
  text-align: center;
}

.newCalc__block-content {
  margin-top: 24px;
}

/* SWITCHES */

.switches-container {
  position: relative;
  display: flex;
  padding: 0;
  background: rgb(213, 213, 213);
  border: 1px solid var(--color-bg-g);
  color: var(--color-text);
  border-radius: 9px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
  word-break: break-all;
  margin-bottom: 24px;
}

.switches-container input {
  visibility: hidden;
  position: absolute;
  top: 0;
}

.switches-container label {
  width: 50%;
  padding: 0;
  margin: 0;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  padding: 14px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.switches-container input:nth-of-type(1):checked~.switch-wrapper {
  transform: translateX(0);
}

.switches-container input:nth-of-type(2):checked~.switch-wrapper {
  transform: translateX(100%);
}

.switch-wrapper {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  /* box-shadow: 0 4px 10px rgba(29, 52, 72, .05); */
  border-radius: 20px;
  z-index: 3;
  transition: transform .5s cubic-bezier(.77, 0, .175, 1);
}

.switch {
  border-radius: 8px;
  background: var(--color-w);
  height: 100%;
}

.switches-container input:nth-of-type(1):checked~.switch-wrapper .switch div:nth-of-type(1) {
  opacity: 1;
}

.switches-container input:nth-of-type(2):checked~.switch-wrapper .switch div:nth-of-type(2) {
  opacity: 1;
}

.switch div {
  width: 100%;
  text-align: center;
  opacity: 0;
  color: var(--color-text);
  font-weight: 600;
  transition: opacity .2s cubic-bezier(.77, 0, .175, 1) 125ms;
  will-change: opacity;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 8px;
}




/* DROPDOWN */

.mt-24 {
  margin-top: 24px;
}

.newCalc__conditions {
  display: grid;
  grid-template-columns: 1fr max-content;
  gap: 12px;
  margin-top: 24px;
}

.newCalc__results-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.newCalc__result-title {
  font-size: 18px;
  font-weight: 600;
  color: #B1B5C3;
}
.newCalc__result-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-text);
  height: 56px;
}
.newCalc__result {
  width: max-content;
}

.newCalc__accordion {
  /* border: var(--color-bg-g) 1px solid; */
  position: relative;
  border-radius: 8px;
}
.newCalc__accordion[data-select="term"] .newCalc__accordion-header {
  text-align: unset;
  min-width: 150px;
}
.newCalc__accordion-header {
  position: relative;
  width: 100%;
  padding: 12px 24px;
  background-color: var(--color-w);
  /* outline: none; */
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 23px;
  color: var(--color-text);
  font-weight: 600;
  height: 56px;
}
.newCalc__accordion-header .arrow {
  width: 12px;
  height: 12px;
  border-top: var(--color-text) 2px solid;
  border-left: var(--color-text) 2px solid;
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-75%) rotate(225deg);
  transition: all .2s ease;
}
.newCalc__accordion-header[aria-expanded="true"] .arrow {
  transform: translateY(-25%) rotate(45deg);
}
.newCalc__accordion-header[aria-expanded="true"] {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.newCalc__accordion-items {
  overflow: hidden;
  max-height: max-content;
  height: 0;
  position: absolute;
  bottom: 0;
  transform: translateY(100%);
  z-index: 1000;
  width: 100%;
  text-align: center;
  background-color: var(--color-w);
  padding-inline: 2px;
  cursor: pointer;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  box-shadow: 0 10px 10px var(--color-bg-g);
}
.newCalc__accordion-items.is-open {
  height: 100%;
  padding-block: 2px;
  transition: height .2s ease-in-out;
}
.newCalc__accordion-item {
  padding: 12px;
  font-size: 20px;
  color: var(--color-text);
  font-weight: 600;
}
.newCalc__accordion-item:hover {
  padding: 12px;
  background-color: var(--color-bg-g);
  border-radius: 6px;
  color: var(--color-text);
}
.newCalc__accordion-item.is-hidden {
  display: none;
}
.newCalc h3.newCalc__accordion-title {
  color: var(--color-text);
  font-size: 18px;
  margin-bottom: 8px;
  margin-left: 4px;
}
input[type=text].newCalc__input,
.newCalc__input {
  border: var(--color-bg-g) 1px solid;
  border-radius: 8px;
  min-height: 46px;
  width: 100%;
  outline: none;
  font-size: 23px;
  font-weight: 600;
  line-height: 120%;
  color: var(--color-text);
  padding: 2px 12px;
  height: 56px;
}

.newCalc__btns {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.newCalc__btn {
  padding: 8px 14px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid var(--color-text);
  color: var(--color-text);
  transition: all .3s ease;
}
.newCalc__btn:hover {
  background-color: var(--color-text);
  color: var(--color-w);
}



/* Slider */
.range-slider {
  margin-inline: 4px;
}

.range-slider .irs--round .irs-line,
.range-slider .irs-bar.irs-bar--single {
  height: 3px;
  top: -2px;
  left: 4px;
  width: calc(100% - 8px);
}

.range-slider .irs--round .irs-bar {
  background-color: var(--color-text);
}
.range-slider .irs--round .irs-handle {
  background-color: var(--color-text);
  border: none;
  width: 13px;
  height: 13px;
  top: -7px;
}

/* MINMAX */

.minmax-value {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.gray-text {
  font-size: 14px;
  font-weight: 400;
  color: #B1B5C3;
}