body {
  counter-reset: section;
}

#calc {
  margin: 0 auto;
  max-width: 700px;
  min-height: 100vh;
}

.calc-steps {
  margin: 0;
  padding: 0 0 20px;
  list-style: none;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.calc-step {
  margin: 0 2px;
  padding: 0 0 30px;
  position: relative;
  -webkit-box-flex: 1;
      -ms-flex: 1 1 100%;
          flex: 1 1 100%;
  max-width: 170px;
  cursor: pointer;
  -webkit-transition: opacity .15s;
  -o-transition: opacity .15s;
  transition: opacity .15s;
}

@media (max-width:659px) {
  .calc-step {
    position: relative;
    margin: 0 10px;
    padding: 0 0 30px;
    position: relative;
    -webkit-box-flex: 1;
        -ms-flex: 1 1 100%;
            flex: 1 1 100%;
    max-width: 18%;
    cursor: pointer;
    -webkit-transition: opacity .15s;
    -o-transition: opacity .15s;
    transition: opacity .15s;
  }
}

.calc-step--disabled {
  opacity: 0.35;
  cursor: default;
}

.calc-step:not(.calc-step--disabled):hover {
  color: #475d69;
}

.calc-step--active {
  cursor: default;
  opacity: 1 !important;
}

.calc-step--active {
  cursor: default;
  opacity: 1;
}

.calc-step__title {
  display: block;
  margin: 0 !important;
  padding: 0 0 10px;
  height: 30px;
  font-size: 14px;
  border-width: 0 0 5px;
  border-style: solid;
  border-color: transparent transparent rgba(79, 99, 110, 1);
  -webkit-transition: border-color .15s;
  -o-transition: border-color .15s;
  transition: border-color .15s;
}

@media (max-width:659px) {
  .calc-step__title {
    color: transparent;
    height: 50px;
    font-size: 0;
  }
}

.calc-step:not(.calc-step--disabled):not(.calc-step--active):hover .calc-step__title {
  border-color: rgba(79, 99, 110, .65);
}

.calc-step--active .calc-step__title {
  border-color: rgba(79, 99, 110, 1);
}

.calc-step--complete .calc-step__title {
  border-color: rgba(16, 197, 3, 1) !important;
}

.calc-step:after {
  content: '';
  position: absolute;
  top: 30px;
  right: 0;
  left: 0;
  width: 5px;
  height: 5px;
  margin: 0 auto;
  border-width: 5px;
  border-style: solid dashed dashed;
  border-color: rgba(255, 255, 255, 0) transparent transparent;
  -webkit-transition: border-color .15s;
  -o-transition: border-color .15s;
  transition: border-color .15s;
}

@media (max-width:659px) {
  .calc-step:after {
    top: 0;
    width: 50px;
    height: 50px;
    line-height: 50px;
    border: none;
    text-align: center;
    counter-increment: section;
    content: counter(section);
    pointer-events: none;
  }
}

.calc-step--active:after {
  border-color: rgba(79, 99, 110, 1) transparent transparent;
}

.calc-step--complete.calc-step--active:after {
  border-color: rgba(16, 197, 3, 1) transparent transparent;
}

.calc-step__selected {
  display: block;
  margin: 0;
  padding: 10px 0 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  height: 40px;
  font-size: 13px;
  line-height: 14px;
  color: #888;
}

@media (max-width:659px) {
  .calc-step__selected {
    display: none;
  }
}

.calc-list {
  margin: 0;
  padding: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  list-style: none;
}

.calc-item {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  margin: 0 5px 10px;
  padding: 15px 0 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
      -ms-flex: 1 1 320px;
          flex: 1 1 320px;
  max-width: 320px;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  text-align: center;
  -webkit-box-shadow: none;
          box-shadow: none;
  -webkit-transition: -webkit-box-shadow .15s;
  transition: -webkit-box-shadow .15s;
  -o-transition: box-shadow .15s;
  transition: box-shadow .15s;
  transition: box-shadow .15s, -webkit-box-shadow .15s;
}

.calc-item:hover {
  -webkit-box-shadow: 0 0 0 4px rgba(79, 99, 110, .15) inset;
          box-shadow: 0 0 0 4px rgba(79, 99, 110, .15) inset;
}

.calc-item--active {
  -webkit-box-shadow: 0 0 0 4px rgba(18, 197, 3, 1) inset !important;
          box-shadow: 0 0 0 4px rgba(18, 197, 3, 1) inset !important;
}

.calc-item .calc-figure {
  margin: 0 auto;
  -webkit-transform-origin: 50% 50%;
      -ms-transform-origin: 50% 50%;
          transform-origin: 50% 50%;
  -webkit-transition: -webkit-transform .15s;
  transition: -webkit-transform .15s;
  -o-transition: transform .15s;
  transition: transform .15s;
  transition: transform .15s, -webkit-transform .15s;
}

.calc-item--flip .calc-figure {
  -webkit-transform: scaleX(-1);
      -ms-transform: scaleX(-1);
          transform: scaleX(-1);
}

.calc-item .scheme {
  font-weight: bold;
}

.calc-item--scheme {
  margin: 0;
  padding: 0;
  -webkit-box-flex: 0;
      -ms-flex: none;
          flex: none;
  -webkit-box-shadow: none !important;
          box-shadow: none !important;
}


.calc-item--scheme .calc-figure {
  opacity: .2;
}

@media (max-width:659px) {
  .calc-item--scheme {
    margin: 0 auto;
  }
}

.calc-item__footer {
  margin: 0;
  padding: 30px 0 0;
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  font-size: 14px;
  /*background-color: rgba(233, 235, 236, 1);*/
}

.calc-item__name {
  margin: 0;
  padding: 0 10px 0 0;
  -ms-flex-preferred-size: 50%;
      flex-basis: 50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  text-align: left;
  line-height: 16px;
}

.calc-item__select {
  font-size: 13px;
  color: #333;
}

.calc-footer {
  margin: 0;
  padding: 60px 0 40px;
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  text-align: center;
}

.calc-footer__button,
button.calc-footer__button[disabled] {
  margin: 0 10px;
  padding: 10px 40px;
  font-family: oswald, sans-serif;
  font-size: 18px;
  text-transform: uppercase;
  height: 60px;
  line-height: 34px;
  color: #666;
  background-color: #d8d8d8;
  border: 2px solid #9fa1a3;
  border-radius: 5px;
  -webkit-box-shadow: 0 0 1px 1px #fff inset;
          box-shadow: 0 0 1px 1px #fff inset;
  cursor: default;
  -webkit-appearance: none;
}

.calc-footer__button[href],
button.calc-footer__button {
  color: #dd2f1a;
  cursor: pointer;
}

.calc-subject {
  padding-bottom: 20px;
}

.calc-subject--center,
.calc-response {
  text-align: center;
}

@media (max-width:659px) {
  .calc-subject {
    text-align: center;
  }
}

.calc-footer__button b {
  display: none;
}

.calc-footer__button span {
  display: block;
}

@media (max-width:659px) {
  .calc-footer__button b {
    display: block;
  }
  .calc-footer__button span {
    display: none;
  }
}

.calc-row {
  margin: 0;
  padding: 0 0 30px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  /*justify-content: space-between;*/
}

@media (max-width:659px) {
  .calc-row {
    width: 100%;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
  }
}

.calc-columns {
  margin: 0;
  padding: 0 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

@media (max-width:659px) {
  .calc-columns {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
}

.calc-column {
  -webkit-box-flex: 0;
      -ms-flex: none;
          flex: none;
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  margin: 16px 0 0;
  padding: 0 40px 0 0;
}

@media (max-width:659px) {
  .calc-column {
    padding: 0;
  }
}

.calc-input-key,
.calc-input-sign {
  margin: 0;
  padding: 0;
  font-size: 40px;
  line-height: 40px;
  height: 40px;
  font-weight: bold;
}

.calc-input-key {
  text-transform: uppercase;
}

.calc-input-sign {
  position: relative;
  top: -4px;
}

@media (max-width:659px) {
  .calc-input-key,
  .calc-input-sign {
    width: 100%;
    text-align: center;
  }
  .calc-input-sign {
    -webkit-box-sizing: content-box;
            box-sizing: content-box;
    padding: 30px 0 10px;
  }
}

.calc-input-wrap {
  position: relative;
  margin: 0;
  padding: 0 10px;
  height: 40px;
}

.calc-input-label {
  position: absolute;
  right: 0;
  bottom: -30px;
  left: 0;
  font-size: 11px;
  color: #888;
  text-align: center;
}

.calc-label {
  margin: 0;
  padding: 0 20px 0 0;
  width: 200px;
  font-size: 14px;
  text-align: right;
}

@media (max-width:659px) {
  .calc-label {
    width: 100%;
    text-align: center;
  }
}

.calc-button {
  margin: 0 0 0 auto;
  padding: 0;
  font-family: oswald, sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  width: 120px;
  height: 40px;
  line-height: 13px;
  color: #dd2f1a;
  background-color: #d8d8d8;
  border: 2px solid #9fa1a3;
  border-radius: 5px;
  -webkit-box-shadow: 0 0 1px 1px #fff inset;
          box-shadow: 0 0 1px 1px #fff inset;
  cursor: pointer;
  -webkit-appearance: none;
}

@media (max-width:659px) {
  .calc-button {
    margin: 10px auto 0;
  }
}

.calc-input {
  margin: 0;
  padding: 0 10px;
  width: 300px;
  height: 40px;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 1px solid #9fa1a3;
}

.calc-input--num {
  width: 90px;
  margin: 0 10px;
  text-align: center;
}

.calc-select {
  margin: 0 10px 0 0;
  padding: 0 10px;
  width: 300px;
  height: 40px;
  text-align: center;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

.calc-textarea {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  margin: 0;
  padding: 0 10px;
  width: 300px;
  min-height: 120px;
}

.calc-textarea--long {
  width: 100%;
}

@media (max-width:659px) {
  .calc-input,
  .calc-select,
  .calc-textarea {
    width: 100%;
    margin-right: 0;
  }
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.calc-checkbox-label {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  font-size: 14px;
}

.calc-checkbox {
  margin-right: 10px;
}

.calc-samples {
  margin-top: 20px;
}

body.overlay {
  overflow: hidden;
}

.calc-modal-mask,
.calc-modal-outside {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-transition: opacity .3s ease;
  -o-transition: opacity .3s ease;
  transition: opacity .3s ease;
}

.calc-modal-mask {
  z-index: 9998;
  background-color: rgba(0, 0, 0, .5);
}

.calc-modal-wrapper {
  width: 100%;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  /*overflow-y: auto;*/
}

.calc-modal-container {
  position: relative;
  width: 80%;
  max-width: 900px;
  max-height: calc(100vh - 10%);
  margin: 0px auto;
  padding: 80px 0 0;
  background-color: #fff;
  border-radius: 2px;
  -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, .33);
          box-shadow: 0 2px 8px rgba(0, 0, 0, .33);
  -webkit-transition: all .3s ease;
  -o-transition: all .3s ease;
  transition: all .3s ease;
  overflow-y: auto;
}

.calc-modal-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 80px;
  padding: 20px;
}

.calc-modal-header h5 {
  margin-top: 0;
  font-family: oswald, sans-serif;
  text-transform: uppercase;
  color: #333;
}

.calc-modal-scroll {
  overflow-y: auto;
}

.calc-modal-body {
  margin: 0;
  padding: 20px;
}

.calc-modal-close {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
  padding: 0;
  width: 80px;
  height: 80px;
  font-size: 20px;
  text-align: center;
  background: none;
  border: none;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  cursor: pointer;
  -webkit-transition: color .15s;
  -o-transition: color .15s;
  transition: color .15s;
}
.calc-modal-close:hover {
  color: #dd2f1a;
}

/*
 * The following styles are auto-applied to elements with
 * transition="modal" when their visibility is toggled
 * by Vue.js.
 *
 * You can easily play with the modal transition by editing
 * these styles.
 */

.calc-modal-enter {
  opacity: 0;
}

.calc-modal-leave-active {
  opacity: 0;
}

.calc-modal-enter .calc-modal-container,
.calc-modal-leave-active .calc-modal-container {
  -webkit-transform: scale(1.1);
  -ms-transform: scale(1.1);
      transform: scale(1.1);
}

.calc-samples {
  margin: 0;
  padding: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

.calc-samples:after {
  content: '';
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
}

.calc-sample {
  margin: 0 0 10px;
  padding: 0 0 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  height: 260px;
  -ms-flex-preferred-size: 25%;
      flex-basis: 25%;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: flex-start;
      -ms-flex-pack: flex-start;
          justify-content: flex-start;
  font-size: 14px;
  -webkit-box-shadow: none;
          box-shadow: none;
  -webkit-transition: -webkit-box-shadow .15s;
  transition: -webkit-box-shadow .15s;
  -o-transition: box-shadow .15s;
  transition: box-shadow .15s;
  transition: box-shadow .15s, -webkit-box-shadow .15s;
  cursor: pointer;
}

.calc-sample:hover {
  -webkit-box-shadow: 0 0 0 4px rgba(79, 99, 110, .15) inset;
          box-shadow: 0 0 0 4px rgba(79, 99, 110, .15) inset;
}

.calc-sample--active {
  -webkit-box-shadow: 0 0 0 4px rgba(18, 197, 3, 1) inset !important;
          box-shadow: 0 0 0 4px rgba(18, 197, 3, 1) inset !important;
  cursor: default;
}

.calc-sample__image {
  margin: 5px 5px 0;
  padding: 10px;
  display: block;
  width: 200px;
  height: 200px;
  object-fit: cover;
}

.calc-sample__name {
  margin: 0;
  padding: 0 10px;
  text-align: center;
}
