* {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
  padding: 0;
}
.calculator__container {
  display: flex;
  gap: 20px;
}
@media (max-width: 1199px) {
  .calculator__container {
    display: block;
  }
}
.calculator__content {
  width: 970px;
  border-radius: 5px;
  border: 1px solid lightgray;
}
@media (max-width: 1199px) {
  .calculator__content {
    width: 100%;
  }
}
.calculator__content-container {
  padding: 45px 50px;
}
@media (max-width: 767px) {
  .calculator__content-container {
    padding: 25px 20px 0;
  }
}
.calculator__content-total {
  width: 860px;
  border-radius: 5px;
  border: 1px solid lightgray;
}
.calculator__content-total-container {
  padding: 45px 50px;
}
@media (max-width: 767px) {
  .calculator__content-total-container {
    padding: 25px 20px 0;
  }
}
@media (max-width: 1450px) {
  .calculator__content-total {
    width: 100%;
  }
}
@media (max-width: 1199px) {
  .calculator__content-total {
    margin-bottom: 15px;
  }
}
.calculator__title {
  max-width: 719px;
  margin-bottom: 45px;
}
@media (max-width: 767px) {
  .calculator__title {
    margin-bottom: 20px;
  }
}
.calculator__title p {
  font-size: 22px;
  font-weight: 600;
  line-height: 27px;
  text-transform: uppercase;
  margin-bottom: 0;

}
@media (max-width: 767px) {
  .calculator__title p {
    font-size: 16px;
    line-height: 20px;
  }
}
.calculator__title span {
  color: #EC7633;
}
.calculator__subtitle p {
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  margin-top: 20px;
  margin-bottom: 0;
  text-transform: none;
  margin-bottom: 0;
}
@media (max-width: 767px) {
  .calculator__subtitle p {
    margin-top: 15px;
  }
}
.calculator__rows {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
@media (max-width: 767px) {
  .calculator__rows {
    gap: 0;
  }
}
.calculator__row {
  display: flex;
  justify-content: space-between;
  max-width: 782px;
  gap: 25px;
  flex-wrap: wrap;
}
@media (max-width: 830px) {
  .calculator__row {
    flex-direction: column;
  }
}
@media (max-width: 767px) {
  .calculator__row {
    gap: 25px;
    margin-bottom: 25px;
  }
}
.calculator__control .calculator__label {
  margin-bottom: 15px;
}
@media (max-width: 767px) {
  .calculator__control .calculator__label {
    margin-bottom: 10px;
  }
}
.calculator__line {
  margin: 40px 0 35px;
  border-bottom: 1px solid lightgray;
}
@media (max-width: 767px) {
  .calculator__line {
    margin: 0 0 25px;
  }
}
.calculator__cost {
  display: flex;
  justify-content: end;
}
@media (max-width: 767px) {
  .calculator__cost {
    margin-bottom: 17px;
    text-align: end;
  }
}
.calculator__cost p {
  font-size: 22px;
  font-weight: 600;
  line-height: 27px;
  text-transform: uppercase;
  margin-bottom: 0;
}
@media (max-width: 767px) {
  .calculator__cost p {
    width: 203px;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
  }
}
.calculator__label {
  display: flex;
  align-items: baseline;
  position: relative;
}
.calculator__label p {
  font-size: 18px;
  font-weight: 600;
  line-height: 22px;
  margin-bottom: 0;
}
@media (max-width: 767px) {
  .calculator__label p {
    font-size: 15px;
    line-height: 18px;
  }
}
.calculator__input {
  display: flex;
  align-items: center;
  gap: 10px;
}

.calculator__input label{
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
}
@media (max-width: 767px) {
  .calculator__input label{
    font-size: 14px;
    line-height: 17px;
  }
}
.calculator__input input[type=text],
.calculator__input input[type=number] {
  min-width: 319px;
  width: 100%;
  height: 49px;
  border: 1px solid #E0E0E0;
  border-radius: 5px;
  padding-left: 20px;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
}
@media (max-width: 767px) {
  .calculator__input input[type=text],
  .calculator__input input[type=number] {
    min-width: auto;
    height: 45px;
    font-size: 14px;
    line-height: 17px;
  }
}
.calculator__input input[type=checkbox] {
  accent-color: #EC7633;
  width: 28px;
  height: 28px;
  border-radius: 5px;
}
.calculator__input input[type=radio] {
  accent-color: #EC7633;
  width: 25px;
  height: 25px;
}
.calculator__select-label {
  position: relative;
}
.calculator__select-label .calculator__dropdown {
  position: absolute;
  right: 12px;
  top: calc(50% - 3px);
  width: 10px;
  height: 6px;
  stroke-width: 2px;
  stroke: #9098a9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.calculator__inputs {
  display: flex;
  align-items: center;
  gap: 10px;
}
.calculator__inputs input[type=text]
, .calculator__inputs select {
  max-width: 131px;
  width: 100%;
  height: 49px;
  border: 1px solid #E0E0E0;
  border-radius: 5px;
  padding-left: 20px;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
}
.calculator__inputs select {
  min-width: 223px;
  -webkit-appearance: none;
}
.calculator__inputs input[type=number] {
  max-width: 111px;
}
.calculator__notion {
  font-size: 12px;
  font-weight: 500;
  line-height: 15px;

  width: 189px;
  padding: 7px 10px;
  border: 1px solid lightgray;
  border-radius: 3px;
  background: white;
  box-shadow: 0px 2px 3px 0px rgba(134, 134, 134, 0.2509803922);
  position: absolute;
  top: -55px;
  right: 0;
  transition: 200ms;
  display: none;
}
.calculator__footnote {
  font-size: 15px;
  font-weight: 400;
  line-height: 18px;
  color: #575757;
}
.calculator__footnote:hover::after {
  background-color: black;
  color: #E0E0E0;
  border-color: black;
}
.calculator__footnote:hover ~ .calculator__notion{
    display: block;
}
.calculator__footnote::after {
  content: "!";
  display: inline-flex;
  position: relative;
  top: -10px;
  right: 0px;
  justify-content: center;
  align-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid black;
  border-radius: 50%;
  background-color: #E0E0E0;
  color: black;
  transition: 200ms;
}

@media (max-width:427px) {
  .calculator__footnote::after {
    top: -35px;
    right: -150px;
  }
}
@media (max-width:395px) {
  .calculator__footnote::after {
    right: -80px;
  }
}

.calculator__footer {
  margin-top: 67px;
  display: flex;
  justify-content: space-between;
}
@media (max-width: 767px) {
  .calculator__footer {
    display: none;
  }
}
.calculator__mobile-footer {
  display: none;
  margin-top: 20px;
  justify-content: end;
}
@media (max-width: 767px) {
  .calculator__mobile-footer {
    display: flex;
  }
}
.calculator__page {
  display: flex;
  align-items: center;
}
.calculator__page p{
    margin-bottom: 0;
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
    display: flex;
    align-items: center;
    color: #BDBDBD;
}
.calculator__page::after {
  content: "";
  display: inline-block;
  width: 35px;
  height: 2px;
  margin-left: 16px;
  background-color: #BDBDBD;
}
.calculator__button input {
  background: #EC7633;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 500;
  line-height: 18px;
  border: none;
  min-width: 151px;
  max-height: 46px;
  padding: 14px 30px 14px 30px;
  border-radius: 5px;
}
.calculator__footer-controls {
  display: flex;
  gap: 10px;
}
.calculator__img {
  max-width: 310px;
  border-radius: 5px;
}
.calculator__img img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
@media (max-width: 1199px) {
  .calculator__img {
    display: none;
  }
}
.calculator__mb-13 {
  margin-bottom: 13px;
}
.calculator__mt-32 {
  margin-top: 32px;
}
.calculator__star::after {
  content: "*";
  color: #EC7633;
}
.calculator__grey input {
  color: #575757;
  background-color: #E0E0E0;
}
.calculator__dropdown {
  background-image: url("/img/Polygon1.svg");
}
.calculator__additionally {
  display: flex;
  width: 364px;
}
.calculator__additionally span {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 10px;
  margin-top: 37px;
  cursor: pointer;
}
@media (max-width: 767px) {
  .calculator__additionally span {
    margin-top: 0;
  }
}
.calculator__additionally span div {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 5px;
  background: #EC7633;
}
.calculator__additionally span p {
  margin-bottom: 0;
  color: black;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  margin-bottom: 0;
}
.calculator__footer-center {
  justify-content: space-around;
}
@media (max-width: 767px) {
  .calculator__hide {
    display: none;
  }
}
.calculator__conclusions {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.calculator__conclusions-item {
  background: #EEEDEC;
  border-radius: 5px;
  width: 420px;
}
@media (max-width: 1199px) {
  .calculator__conclusions-item {
    width: 100%;
  }
}
.calculator__conclusions-container {
  padding: 34px;
}
.calculator__conclusions-title p {
  font-size: 24px;
  font-weight: 600;
  line-height: 29px;
  margin-bottom: 0;
}
@media (max-width: 767px) {
  .calculator__conclusions-title p {
    font-size: 18px;
  }
}
.calculator__list {
  margin-top: 15px;
}
.calculator__list-subtitle {
  margin-bottom: 15px;
}
.calculator__list-subtitle p {
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  margin-bottom: 0;
}
@media (max-width: 767px) {
  .calculator__list-subtitle p {
    font-size: 14px;
  }
}
.calculator__list ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.calculator__list ul li {
  display: flex;
  justify-content: space-between;
  align-items: start;
  width: 100%;
}
.calculator__list ul li p {
  font-size: 16px;
  line-height: 20px;
  display: flex;
  align-items: end;
  text-wrap: nowrap;
  margin-bottom: 0;
}
.calculator__list ul li p:first-child {
  min-width: 181px;
  text-wrap: pretty;
}
.calculator__list ul li span {
  line-height: 20px;
  margin-top: 18px;
  font-size: 16px;
  width: 100%;
  border-bottom: 1px dotted lightgray;
}
.calculator__conclusions-controls {
  margin-top: 27px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.calculator__conclusions-control {
  width: 100%;
  padding: 14px 30px;
  border-radius: 5px;
  background: #EC7633;
  color: white;
  border: none;
  cursor: pointer;
  text-align: center;
  font-size: 16px;
  line-height: 20px;
  text-decoration: none;
}

@media (max-width:767px) {
  .calculator__conclusions-control {
    font-size: 14px;
  }
}
.calculator__conclusions-control:hover {
  color: white;

}
.calculator__conclusions-control-empty {
  border: 1px solid #EC7633;
  background: none;
  color: black;
}
.calculator__conclusions-control-empty:hover {
  color: black;
}
.calculator__conclusions-subtitle {
  margin-top: 15px;
}
.calculator__conclusions-subtitle p {
  font-size: 24px;
  line-height: 29px;
  color: #EC7633;
  margin-bottom: 0;
}
.calculator__bold {
  font-weight: 600;
}
.calculator__orange {
  color: #EC7633;
}
.calculator__conclusions-line {
  margin: 15px 0;
  border-bottom: 1px solid lightgray;
}
.calculator__warning {
  margin-top: 15px;
}
.calculator__warning p {
  margin-bottom: 0;
  color: #575757;
  font-size: 13px;
  line-height: 18px;
}
.calculator__basket {
  border: 1px solid #EC7633;
  border-radius: 5px;
  max-width: 496px;
  margin-bottom: 27px;
}
.calculator__basket-container {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 15px 23px;
}
.calculator__basket-text p {
  margin-bottom: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
}
@media (max-width: 767px) {
  .calculator__basket-text p {
    font-size: 14px;
  }
}
.calculator__basket-text p a {
  color: #EC7633;
}
.calculator__blocks {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
@media (max-width: 767px) {
  .calculator__blocks {
    margin-bottom: 25px;
  }
}
.calculator__block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.calculator__block-item {
  background: #F8F8F8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 26px;
  border-radius: 5px;
}
@media (max-width: 767px) {
  .calculator__block-item {
    flex-direction: column;
    gap: 7px;
  }
}
.calculator__block-values {
  display: flex;
  align-items: center;  
  gap: 35px;
}
@media (max-width: 767px) {
  .calculator__block-values {
    width: 100%;
    justify-content: space-between;
  }
}
.calculator__block-good p, .calculator__block-rate p, .calculator__block-amount p{
  font-size: 16px;
  font-weight: 400;
  max-width: 300px;
  line-height: 20px;
  margin-bottom: 0;
}
@media (max-width: 767px) {
  .calculator__block-good, .calculator__block-rate, .calculator__block-amount {
    font-size: 13px;
  }
  .calculator__block-good {
    width: 100%;
  }
}
@media (max-width: 1450px) {
  .calculator__block-good {
    max-width: 200px;
  }
  .calculator__block-good p {
    text-wrap: wrap;
    margin-bottom: 0;
  }
}
@media (max-width: 1199px) {
  .calculator__block-good {
    max-width: none;
  }
}
@media (max-width: 767px) {
  .calculator__block-good {
    font-weight: 600;
  }
}
.calculator__block-amount {
  color: #828282;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: default;
  text-wrap: nowrap;
}
.calculator__block-cost p{
  font-weight: 600;
  margin-bottom: 0;
}
.calculator__basket-img img{
  max-width: none;
}
.calculator__label {
  font-size: 18px;
  font-weight: 600;
  line-height: 22px;
  margin-bottom: 10px;
}


@media (max-width:924px) {
  .calculator__select-label{
    width: 100%;
  }

  .calculator__inputs select{
    min-width: 100%;
  }
}

@media (max-width:478px) {
  .calculator__inputs select{
    max-width: 179px;
  }
}
@media (max-width:478px) {
  .calculator__inputs select{
    max-width: 139px;
  }
}

.XS-calc-container{
  color: white;
}

.calculator__block-control{
  cursor: pointer;
  display: inline-block;
  color: black;
  transition: 200ms;
  font-size: 22px;
}

.calculator__block-control:hover{
  transform: translateY(-2px);
}

.calculator__block-rate,
.calculator__block-cost {
  width: 100px; /* Фиксированная ширина */
}

.calculator__block-rate,
.calculator__block-cost {
  width: 100px;
  text-align: right; /* Выравнивание текста по правому краю */
}

.calculator__block-rate p,
.calculator__block-cost p {
  white-space: nowrap;
}

.calculator__block-values {
  display: flex;
  align-items: center;
  gap: 35px;
}
