.vita-calculator {
  padding: clamp(72px, 8vw, 120px) 0;
  background: #f1f4ef;
  color: #173e2e;
  scroll-margin-top: 90px;
}

.vita-calculator *,
.vita-calculator *::before,
.vita-calculator *::after {
  box-sizing: border-box;
}

.vita-calculator__shell {
  display: grid;
  grid-template-columns: minmax(250px, .68fr) minmax(580px, 1.32fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}

.vita-calculator__intro {
  position: sticky;
  top: 105px;
}

.vita-calculator__intro h2 {
  margin: 12px 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4vw, 60px);
  line-height: .98;
  letter-spacing: -.035em;
}

.vita-calculator__intro > p:not(.section-kicker) {
  max-width: 520px;
  color: #456054;
  font-size: 18px;
  line-height: 1.6;
}

.vita-calculator__availability {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 5px 12px;
  margin-top: 30px;
  padding: 20px;
  border: 1px solid rgba(194, 79, 49, .22);
  background: #fff9f4;
}

.vita-calculator__availability > span {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: #c45132;
  box-shadow: 0 0 0 5px rgba(196, 81, 50, .12);
}

.vita-calculator__availability strong,
.vita-calculator__availability small {
  grid-column: 2;
}

.vita-calculator__availability small {
  color: #765b51;
  line-height: 1.45;
}

.vita-calculator__form {
  display: grid;
  gap: 22px;
}

.vita-calculator__step[hidden] {
  display: none !important;
}

.vita-calculator__progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vita-calculator__progress li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  border-bottom: 2px solid #cfd8d2;
  color: #7a8880;
  font-size: 13px;
}

.vita-calculator__progress span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 50%;
  background: #dfe6e1;
  font-weight: 800;
}

.vita-calculator__progress li.is-active {
  border-color: #c45132;
  color: #173e2e;
}

.vita-calculator__progress li.is-active span {
  background: #c45132;
  color: #fff;
}

.vita-calculator__progress li.is-complete {
  border-color: #173e2e;
  color: #173e2e;
}

.vita-calculator__progress li.is-complete span {
  background: #173e2e;
  color: #fff;
}

.vita-calculator__fieldset,
.vita-calculator__result {
  min-width: 0;
  margin: 0;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(23, 62, 46, .13);
  background: #fff;
  box-shadow: 0 18px 55px rgba(23, 62, 46, .07);
}

.vita-calculator__fieldset legend {
  display: flex;
  align-items: center;
  gap: 12px;
  width: auto;
  padding: 0 10px 0 0;
  color: #173e2e;
  font-size: 20px;
  font-weight: 750;
}

.vita-calculator__fieldset legend span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: #173e2e;
  color: #fff;
  font-size: 15px;
}

.vita-calculator__rooms {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.vita-room-card {
  display: block;
  cursor: pointer;
}

.vita-room-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.vita-room-card__body {
  display: grid;
  gap: 7px;
  min-height: 142px;
  padding: 18px 15px;
  border: 1px solid #d7dfda;
  background: #fafbf9;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.vita-room-card strong {
  font-size: 17px;
}

.vita-room-card small {
  color: #718078;
}

.vita-room-card b {
  align-self: end;
  color: #c45132;
  font-size: 14px;
}

.vita-room-card em {
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.vita-room-card input:checked + .vita-room-card__body {
  border-color: #173e2e;
  background: #eef4f0;
  box-shadow: inset 0 0 0 1px #173e2e;
  transform: translateY(-2px);
}

.vita-room-card input:focus-visible + .vita-room-card__body {
  outline: 3px solid rgba(196, 81, 50, .35);
  outline-offset: 2px;
}

.vita-calculator__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.vita-calculator__grid label,
.vita-calculator__comment {
  display: grid;
  gap: 8px;
}

.vita-calculator__grid label > span,
.vita-calculator__comment > span {
  font-size: 14px;
  font-weight: 700;
}

.vita-calculator__grid input,
.vita-calculator__grid select,
.vita-calculator__comment textarea {
  width: 100%;
  min-height: 54px;
  padding: 13px 14px;
  border: 1px solid #cad4ce;
  border-radius: 0;
  background: #fff;
  color: #173e2e;
  font: inherit;
}

.vita-calculator__comment textarea {
  min-height: 96px;
  resize: vertical;
}

.vita-calculator__grid input:focus,
.vita-calculator__grid select:focus,
.vita-calculator__comment textarea:focus {
  outline: 3px solid rgba(23, 62, 46, .13);
  border-color: #173e2e;
}

.vita-calculator__wide {
  grid-column: 1 / -1;
}

.vita-calculator__conditions {
  margin-top: 22px;
}

.vita-calculator__conditions > p {
  margin: 0 0 12px;
  font-weight: 700;
}

.vita-calculator__conditions > p small,
.vita-calculator__comment small {
  color: #75827b;
  font-weight: 400;
}

.vita-calculator__conditions > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.vita-calculator__conditions label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px;
  border: 1px solid #e0e6e2;
  background: #fafbf9;
  cursor: pointer;
  line-height: 1.35;
}

.vita-calculator__conditions input,
.vita-calculator__consent input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 18px;
  accent-color: #173e2e;
}

.vita-calculator__comment {
  margin-top: 18px;
}

.vita-calculator__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
}

.vita-calculator__nav--end {
  justify-content: flex-end;
}

.vita-calculator__nav .button {
  min-height: 54px;
  border: 0;
  cursor: pointer;
}

.vita-calculator__back {
  padding: 10px 2px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: #53665c;
  font: inherit;
  cursor: pointer;
}

.vita-calculator__final {
  display: grid;
  gap: 22px;
}

.vita-calculator__result {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  border-color: #173e2e;
  background: #173e2e;
  color: #fff;
}

.vita-calculator__result > div {
  display: grid;
  gap: 7px;
}

.vita-calculator__result span {
  color: #bed0c6;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.vita-calculator__result s {
  color: #d3ddd7;
  font-size: 19px;
}

.vita-calculator__promo strong {
  color: #fff;
  font-size: 18px;
}

.vita-calculator__promo b {
  color: #f6a78f;
  font-size: clamp(28px, 4vw, 42px);
}

.vita-calculator__result > p,
.vita-calculator__result > small {
  grid-column: 1 / -1;
  margin: 0;
}

.vita-calculator__result > p {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .17);
  font-size: 18px;
}

.vita-calculator__result > .vita-calculator__result-ready {
  width: max-content;
  padding: 7px 11px;
  border: 1px solid rgba(246, 167, 143, .55);
  background: rgba(246, 167, 143, .1);
  color: #f6a78f;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.vita-calculator__result > small {
  color: #bed0c6;
  line-height: 1.45;
}

.vita-calculator__contacts {
  border-color: rgba(196, 81, 50, .33);
}

.vita-calculator__contacts-lead {
  margin: 10px 0 0;
  color: #52675d;
  line-height: 1.55;
}

.vita-calculator__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0;
  color: #607067;
  font-size: 13px;
  line-height: 1.45;
  cursor: pointer;
}

.vita-calculator__submit {
  width: 100%;
  min-height: 58px;
  border: 0;
  cursor: pointer;
}

.vita-calculator__submit:disabled {
  cursor: wait;
  opacity: .7;
}

.vita-calculator__back--final {
  display: block;
  margin: 14px auto 0;
}

.vita-calculator__status {
  min-height: 1.4em;
  margin: 14px 0 0;
  font-weight: 700;
  line-height: 1.45;
}

.vita-calculator__status.is-success { color: #17613f; }
.vita-calculator__status.is-error { color: #a33628; }
.vita-calculator__honey { position: absolute !important; left: -9999px !important; }

@media (max-width: 980px) {
  .vita-calculator__shell { grid-template-columns: 1fr; }
  .vita-calculator__intro { position: static; }
}

@media (max-width: 680px) {
  .vita-calculator { padding: 62px 0 84px; }
  .vita-calculator__intro h2 { font-size: clamp(36px, 11vw, 48px); }
  .vita-calculator__rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vita-calculator__grid,
  .vita-calculator__conditions > div,
  .vita-calculator__result { grid-template-columns: 1fr; }
  .vita-calculator__wide,
  .vita-calculator__result > p,
  .vita-calculator__result > small { grid-column: 1; }
  .vita-calculator__fieldset,
  .vita-calculator__result { padding: 22px 16px; }
  .vita-calculator__fieldset legend { font-size: 18px; }
  .vita-room-card__body { min-height: 132px; }
  .vita-calculator__progress li { justify-content: center; padding: 9px 4px; }
  .vita-calculator__progress b { display: none; }
  .vita-calculator__nav { align-items: stretch; flex-direction: column-reverse; }
  .vita-calculator__nav--end { flex-direction: column; }
  .vita-calculator__nav .button { width: 100%; }
  .vita-calculator__back { align-self: center; }
}

html[data-contrast="high"] .vita-calculator,
html[data-contrast="high"] .vita-calculator__fieldset,
html[data-contrast="high"] .vita-calculator__rooms span,
html[data-contrast="high"] .vita-calculator__conditions label {
  background: #fff !important;
  color: #000 !important;
  border-color: #000 !important;
}
