
html{
  box-sizing: border-box;
}
*, *::before, *::after{
  box-sizing: inherit;
}

body{
  font-family: 'Montserrat';
  font-style: normal;
  font-size: 16px;
  line-height: 1.2;
  font-weight: normal;
  color: #333;
  margin: 0;
  padding: 0;
}

header {
  background-color: #3a3a3a;
  text-align: center;
  padding: 20px 24px;
}

header img {
  max-width: 141px;
}

footer {
  background-color: #2c2c2c;
  text-align: center;
  padding: 20px 24px;
  color: #f1f1f1;
}

.page-wrapper{
  position: relative;
  max-width: 1464px;
  padding: 40px 24px;
  margin: 0 auto;
  align-items: start;
}

.page-wrapper.loading {
  background: url(../img/loader.gif) center 160px / 50px no-repeat;
}

.page-wrapper.loading .column{
 opacity: 0;
}

.summary-column {
  position: sticky;
  top: 40px;
}

h2 {
  margin: 10px 0 15px;
  font-size: 16px;
}

.image-list {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: space-between;
  gap: 10%;
  flex-wrap: wrap;
  padding-bottom: 30px;
  border-bottom: 1px solid #AEAEAE;
  text-align: center;
}

.field:last-child .image-list {
  border-bottom: 0;
}

.image-list .image-item-wrapper {
  padding: 20px;
  box-sizing: border-box;
  border: 1px solid #AEAEAE;
  border-radius: 10px;
  cursor: pointer;
}

.image-list li {
  width: calc(70%/4);
  margin-bottom: 40px;
}

.image-list .active {
  padding: 19px;
  border: 2px solid #0274be;
}

.image-list li img {
  max-width: 100%;
}

.image-list a {
  margin-top: 4px;
  font-size: 10px;;
  text-decoration: none;
  color: #333;
  display: inline-flex;
  align-items: center;
}
.image-list a:after {
  content: '»';
  margin-left: 3px;
  transition: .2s;
}

.image-list a:hover:after {
  transform: translateX(4px);
}

.title {
  display: flex;
}

.tooltip {
  position: relative;
  margin-left: 10px;
  cursor: pointer;
}

.tooltip-content {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 20px;
  width: 278px;
  padding: 10px;
  box-sizing: border-box;
  background: #FFFFFF;
  box-shadow: 0px 0px 5px rgba(51, 51, 51, 0.3);
  border-radius: 10px;
  text-align: center;
}

.tooltip:hover .tooltip-content {
  display: block;
}

.selected .grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 40px;
  grid-template-columns: calc(50% - 20px) calc(50% - 20px);
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid #AEAEAE;
}

.selected .grid .value {
  margin-top: 15px;
  font-size: 24px;
  font-weight: bold;
  word-break: break-word;
}

.bottom .total-price {
  margin-top: 10px;
  font-size: 24px;
  font-weight: bold;
  color: #0274be;
}

.input-fields {
  margin: 60px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid #AEAEAE;
}

.control {
  flex: 1;
}

input, select {
  width: 100%;
  height: 50px;
  padding: 12px 50px 12px 20px;
  border: 1px solid #AEAEAE;
  border-radius: 10px;
  font-family: 'Montserrat';
}

select {
  appearance: none;
  background: #fff url(../img/svg/down-arrow.svg) calc(100% - 10px) center no-repeat;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

.control {
  position: relative;
}

.control .addon {
  position: absolute;
  right: 20px;
  bottom: 15px;
}

label {
  display: block;
  margin: 10px 0 15px;
  font-weight: bold;
}

@media all and (max-width: 1023px) {
  .image-list .image-item-wrapper {
    padding: 15px;
  }

  .image-list .active {
    padding: 14px;
  }

  .selected .grid {
    border-bottom: 0;
  }

  .bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    text-align: center;
    background-color: #fff;
    box-shadow: 0px 0px 5px rgb(51 51 51 / 30%);
  }

  .tooltip {
    position: static;
  }

  .title {
    position: relative;
  }

  .tooltip-content {
    left: 0;
    bottom: calc(100% + 15px);
  }
}

@media all and (min-width: 1024px) {
  .page-wrapper {
    display: grid;
    grid-template-columns: 60% 30%;
    gap: 10%;
  }
}

@media all and (max-width: 640px) {
  .page-wrapper {
    padding-top: 10px;
    padding-bottom: 0;
  }

  .image-list {
    flex-wrap: wrap;
    padding-bottom: 0;
  }

  .image-list li {
    width: 45%;
    margin-bottom: 40px;
  }

  .input-fields {
    flex-wrap: wrap;
    margin: 40px 0;
    padding-bottom: 40px;
    gap: 20px;
  }

  .input-fields .control {
    width: 100%;
    flex: auto;
  }
}