.calc .cmn-wave {
  z-index: 1;
}

.calc__inner {
  width: min(640px, 100%);
  margin: 0 auto;
}

.calc__list {
  display: flex;
  flex-wrap: wrap;
}

.calc-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.calc-item:has(#waterContentWithoutFib) {
  position: relative;
}
.calc-item:has(#waterContentWithoutFib)::after {
  content: "";
  display: block;
  position: absolute;
  background: url(./arrow.svg);
}
.calc-item h3 {
  font-weight: bold;
}
.calc-item input,
.calc-item select {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}
.calc-item input::-moz-placeholder, .calc-item select::-moz-placeholder {
  color: inherit;
}
.calc-item input::placeholder,
.calc-item select::placeholder {
  color: inherit;
}
.calc-item input:not([type=radio]),
.calc-item select {
  border: 1px solid #ccc;
}
.calc-item input,
.calc-item label:has(input[type=radio]),
.calc-item select {
  border-radius: 4px;
}
.calc-item.only-daily, .calc-item.only-yearly {
  display: none;
}
.calc-item.only-daily.is-active, .calc-item.only-yearly.is-active {
  display: flex;
}

.calc-item__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.calc-item__inner div {
  display: flex;
  align-items: end;
  gap: 4px;
}
.calc-item__inner .timeframe-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.calc-item__inner .timeframe-switch label {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  height: 48px;
  background-color: #fff;
  color: var(--blue);
  transition: 0.2s;
  cursor: pointer;
}
.calc-item__inner .timeframe-switch label:has(input:checked) {
  background-color: var(--blue);
  color: #fff;
}
.calc-item__inner .timeframe-switch input {
  width: 1px;
}
.calc-item__inner .timeframe-switch span {
  color: inherit;
  font-weight: bold;
}

.calc-item__select {
  position: relative;
}
.calc-item__select::after {
  content: "";
  display: block;
  -webkit-clip-path: polygon(0 0, 50% 100%, 100% 0%);
          clip-path: polygon(0 0, 50% 100%, 100% 0%);
  background-color: var(--text-color);
  width: 8px;
  height: 6px;
  position: absolute;
  right: 10px;
  top: calc(50% - 2px);
}

.calc-btn {
  width: 100%;
  font-size: 18px;
  background-color: var(--text-color);
  color: #fff;
  font-weight: bold;
  margin-top: 32px;
  padding: 20px;
  border-radius: 6px;
}

.water-content-after-deh {
  display: flex;
}
.water-content-after-deh select {
  order: 1;
}
.water-content-after-deh span {
  order: 2;
}

.calc__result {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.calc__result::before {
  content: "";
  display: block;
  background-color: var(--blue);
  -webkit-clip-path: polygon(0% 100%, 50% 0%, 100% 100%);
          clip-path: polygon(0% 100%, 50% 0%, 100% 100%);
}
.calc__result:has(.result:empty) {
  display: none;
}

.calc__result__inner {
  background-color: var(--blue);
  width: 100%;
  border-radius: 6px;
}
.calc__result__inner * {
  color: #fff;
}

.result div {
  font-weight: bold;
}
.result div p,
.result div span,
.result div strong {
  font-weight: inherit;
}
.result p {
  font-size: 15px;
}
.result strong {
  font-size: 26px;
}
.result .bubble {
  display: flex;
}
.result .bubble::before {
  content: "";
  display: block;
  background-color: var(--blue-dark);
}
.result .bubble > div {
  background-color: var(--blue-dark);
}

@media screen and (min-width: 769px) {
  .calc__one hgroup:has(h2) {
    margin-bottom: 52px;
    margin-top: 100px;
  }
  .calc__list {
    gap: 42px 64px;
  }
  .calc-item h3 {
    font-size: 20px;
  }
  .calc-item span {
    font-size: 18px;
  }
  .calc-item:has(#waterContentWithoutFib)::after {
    width: 30px;
    height: 24px;
    right: -46px;
    bottom: 15px;
  }
  .calc-item input,
  .calc-item select {
    width: 200px;
    height: 48px;
    font-size: 16px;
  }
  .calc-item input:not([type=radio]),
  .calc-item select:not([type=radio]) {
    padding: 8px 16px;
  }
  .calc-item .short {
    width: 140px;
  }
  .timeframe-switch span {
    font-size: 15px;
  }
  .calc-btn {
    margin-top: 48px;
  }
  .calc__result {
    margin-top: 24px;
  }
  .calc__result::before {
    width: 18px;
    height: 16px;
  }
  .calc__result__inner {
    padding: 34px 40px 40px;
  }
  .calc__result--sludge {
    position: relative;
  }
  .calc__result--sludge .bubble {
    align-items: center;
    position: absolute;
    right: 40px;
    top: 34px;
    width: 266px;
    height: 120px;
  }
  .calc__result--sludge .bubble > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }
  .calc__result--sludge .bubble > div span {
    font-size: 15px;
  }
  .calc__result--sludge .bubble > div p {
    font-size: 14px;
  }
  .calc__result--sludge .bubble > div p strong {
    font-size: 34px;
  }
  .calc__result--sludge .bubble::before {
    -webkit-clip-path: polygon(100% 0%, 100% 100%, 0% 50%);
            clip-path: polygon(100% 0%, 100% 100%, 0% 50%);
    width: 14px;
    height: 12px;
  }
  .calc__result--sludge .result {
    display: flex;
    align-items: end;
  }
  .calc__result--sludge .result > div:nth-of-type(2) {
    display: grid;
    grid-template-columns: repeat(2, 78px);
    gap: 24px;
    height: 200px;
  }
  .calc__result--sludge .result > div:nth-of-type(2) > div {
    display: flex;
    justify-content: center;
    align-items: start;
    background-color: #fff;
    color: var(--blue);
    text-align: center;
    margin-top: auto;
    font-size: 14px;
    line-height: 140%;
    padding-top: 10px;
  }
  .calc__result--sludge .result > div:nth-of-type(3) {
    display: flex;
    flex-direction: column;
    margin-left: 24px;
  }
  .calc__result--sludge .result > div:nth-of-type(3) span {
    font-size: 18px;
  }
  .calc__result--sludge .result > div:nth-of-type(3) p {
    font-size: 22px;
    line-height: 100%;
    margin-top: 16px;
  }
  .calc__result--sludge .result > div:nth-of-type(3) p strong {
    font-size: 52px;
  }
  .calc__result--cost .result {
    display: grid;
    grid-template-columns: 180px auto;
    gap: 24px;
  }
  .calc__result--cost .result > div:first-of-type {
    display: grid;
    grid-template-columns: repeat(2, 78px);
    gap: 24px;
    height: 200px;
  }
  .calc__result--cost .result > div:first-of-type > div {
    display: flex;
    justify-content: center;
    align-items: start;
    background-color: #fff;
    color: var(--blue);
    text-align: center;
    margin-top: auto;
    font-size: 14px;
    line-height: 140%;
    padding-top: 10px;
  }
  .calc__result--cost .result > div:nth-of-type(2) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .calc__result--cost .result > div:nth-of-type(2) > div {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 10px;
  }
  .calc__result--cost .result > div:nth-of-type(2) > div span, .calc__result--cost .result > div:nth-of-type(2) > div p {
    font-size: 14px;
  }
  .calc__result--cost .result > div:nth-of-type(2) > div span strong, .calc__result--cost .result > div:nth-of-type(2) > div p strong {
    font-size: 24px;
  }
  .calc__result--cost .result > div:nth-of-type(2) > div:nth-of-type(3) {
    flex-direction: column;
    background-color: var(--blue-dark);
    align-items: center;
    width: 100%;
    margin-top: 18px;
    padding: 18px 0 16px;
  }
  .calc__result--cost .result > div:nth-of-type(2) > div:nth-of-type(3) span {
    font-size: 14px;
  }
  .calc__result--cost .result > div:nth-of-type(2) > div:nth-of-type(3) p {
    font-size: 16px;
  }
  .calc__result--cost .result > div:nth-of-type(2) > div:nth-of-type(3) p strong {
    font-size: 34px;
  }
}/*# sourceMappingURL=style.css.map */