.home-simulator {
  position: relative;
  overflow: hidden;
  scroll-margin-top: 88px;
  padding-block: 108px 120px;
  background: #e9ede8;
}
.home-simulator::before {
  position: absolute;
  top: 0;
  left: max(24px, calc((100vw - min(1320px, calc(100vw - 80px))) / 2));
  width: 78px;
  height: 3px;
  content: "";
  background: var(--red);
}
.home-simulator__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr);
  align-items: end;
  gap: clamp(60px, 9vw, 145px);
  margin-bottom: 54px;
}
.home-simulator__intro h2 { max-width: 820px; }
.home-simulator__intro > p {
  max-width: 470px;
  margin: 0 0 4px;
  color: #4f5d58;
  font-size: 17px;
  line-height: 1.7;
}
.home-simulator__workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(390px, .88fr);
  border: 1px solid #c9d0cb;
  background: var(--ivory);
  box-shadow: 0 32px 85px rgba(7, 31, 27, .1);
}
.home-simulator__controls { padding: clamp(32px, 4vw, 58px); }
.home-simulator__panel-head,
.home-simulator__result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 25px;
  padding-bottom: 30px;
  border-bottom: 1px solid #d7ddd8;
}
.home-simulator__panel-head span,
.home-simulator__result-head span {
  display: block;
  margin-bottom: 7px;
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.home-simulator__panel-head strong,
.home-simulator__result-head strong { font: 500 24px/1.25 Manrope, sans-serif; }
.home-simulator__panel-head > i,
.home-simulator__result-head > i {
  color: #84928d;
  font-size: 11px;
  font-style: normal;
  letter-spacing: .1em;
}
.home-simulator__field { padding-top: 30px; }
.home-simulator__field + .home-simulator__field {
  margin-top: 28px;
  border-top: 1px solid #e0e4e1;
}
.home-simulator__field > label,
.home-simulator__field-head > label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}
.home-simulator__select { position: relative; margin-top: 12px; }
.home-simulator__select select {
  width: 100%;
  min-height: 62px;
  appearance: none;
  padding: 0 54px 0 18px;
  border: 1px solid #bfc8c2;
  border-radius: 0;
  outline: 0;
  color: var(--ink);
  background: #fff;
  font: 600 15px "DM Sans", sans-serif;
}
.home-simulator__select > span {
  position: absolute;
  top: 50%;
  right: 19px;
  color: var(--red);
  font-size: 19px;
  pointer-events: none;
  transform: translateY(-55%);
}
.home-simulator__field-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.home-simulator__entry {
  min-width: 148px;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid #c5ccc7;
  background: #fff;
}
.home-simulator__entry input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: 600 18px "DM Sans", sans-serif;
  text-align: right;
  appearance: textfield;
}
.home-simulator__entry input::-webkit-inner-spin-button,
.home-simulator__entry input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.home-simulator__entry span { flex: 0 0 auto; color: #52615c; font-size: 13px; }
.home-simulator input[type="range"] {
  width: 100%;
  height: 6px;
  margin: 27px 0 10px;
  appearance: none;
  border-radius: 99px;
  outline: none;
  background: #d1d7d3;
}
.home-simulator input[type="range"]::-webkit-slider-thumb {
  width: 25px;
  height: 25px;
  appearance: none;
  border: 6px solid #fff;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 1px rgba(8, 32, 28, .22), 0 5px 14px rgba(7, 31, 27, .18);
  cursor: pointer;
}
.home-simulator input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 6px solid #fff;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 1px rgba(8, 32, 28, .22), 0 5px 14px rgba(7, 31, 27, .18);
  cursor: pointer;
}
.home-simulator__range-labels { display: flex; justify-content: space-between; color: #73817c; font-size: 10px; }
.home-simulator__limit { margin: 11px 0 0; color: #66736e; font-size: 11px; }
.home-simulator__limit strong { color: var(--ink); }
.home-simulator__privacy {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 32px 0 0;
  padding-top: 22px;
  border-top: 1px solid #d7ddd8;
  color: #64726d;
  font-size: 11px;
  line-height: 1.5;
}
.home-simulator__privacy span { color: var(--red); font-size: 14px; }
.home-simulator__result {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(32px, 4vw, 58px);
  color: white;
  background: var(--ink);
}
.home-simulator__result-head { border-color: rgba(255, 255, 255, .16); }
.home-simulator__result-head strong { color: #fff; }
.home-simulator__result-head > i { color: #849a92; }
.home-simulator__monthly { padding: clamp(35px, 5vw, 64px) 0 30px; }
.home-simulator__monthly > span { color: #aab9b3; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.home-simulator__monthly div { display: flex; align-items: baseline; gap: 12px; margin: 8px 0 12px; }
.home-simulator__monthly strong { font: 500 clamp(50px, 5vw, 76px)/1 Manrope, sans-serif; letter-spacing: -.055em; }
.home-simulator__monthly div span { color: #b8c5c0; font-size: 14px; }
.home-simulator__monthly small { color: #91a39c; font-size: 12px; }
.home-simulator__monthly small b { color: #dce4e1; font-weight: 600; }
.home-simulator__details { margin: 0 0 34px; border-top: 1px solid rgba(255, 255, 255, .16); }
.home-simulator__details div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .13);
}
.home-simulator__details dt { color: #9caea7; font-size: 11px; }
.home-simulator__details dd { margin: 0; color: white; font-size: 13px; font-weight: 700; }
.home-simulator__actions { margin-top: auto; }
.home-simulator__actions .button { width: 100%; cursor: pointer; }
.home-simulator__actions .text-link { margin-top: 18px; color: #d5dfdb; border-bottom-color: rgba(255, 255, 255, .34); }
.home-simulator__legal { margin: 21px 0 0; color: #7f928b; font-size: 10px; line-height: 1.55; }
.home-simulator select:focus-visible,
.home-simulator input:focus-visible,
.home-simulator button:focus-visible,
.home-simulator a:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

@media (max-width: 980px) {
  .home-simulator__intro { grid-template-columns: 1fr; gap: 24px; }
  .home-simulator__intro > p { max-width: 640px; }
  .home-simulator__workspace { grid-template-columns: 1fr; }
  .home-simulator__result { min-height: 620px; }
}

@media (max-width: 640px) {
  .home-simulator { padding-block: 82px 88px; }
  .home-simulator::before { left: 18px; }
  .home-simulator__intro { margin-bottom: 34px; }
  .home-simulator__intro > p { font-size: 15px; }
  .home-simulator__controls,
  .home-simulator__result { padding: 28px 22px; }
  .home-simulator__field-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .home-simulator__entry { width: 100%; min-width: 0; }
  .home-simulator__result { min-height: 560px; }
  .home-simulator__monthly strong { font-size: clamp(47px, 14vw, 64px); }
}
