/* FONTS */

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url('../fonts/RobotoRegular.woff2') format('woff2'),
       url('../fonts/RobotoRegular.woff') format('woff'),
       url('../fonts/RobotoRegular.ttf') format('ttf'),
       url('../fonts/RobotoRegular.eot') format('eot');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url('../fonts/RobotoBold.woff2') format('woff2'),
       url('../fonts/RobotoBold.woff') format('woff'),
       url('../fonts/RobotoBold.ttf') format('ttf'),
       url('../fonts/RobotoBold.eot') format('eot');
}

/* @font-face {
  font-family: 'Gilroy';
  font-style: bold;
  font-weight: 900;
  font-display: optional;
  src: url('https://galeco.pl/sites/all/themes/investmag/fonts/gilroy-extrabold-webfont.woff') format('woff');
} */

/* /FONTS */


* {
  box-sizing: border-box;
}

input[type="number"] {
  border-radius: 0;
}

body {
  margin: 0;
  font-family: 'Gilroy', sans-serif;
  background: white;
}

.wrapper {
  width: 1200px;
  margin: 0 auto;
}

.flexbox {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.hide {
  display: none;
}

.show {
  display: flex;
}



.page__title {
  margin: 0;
  margin-bottom: 55px;
  font-size: 28px;
  font-weight: bold;
  line-height: 30px;
  text-align: center;
}

.page__half {
  position: relative;
  width: 50%;
  padding: 0 40px;
}

.page__button {
  padding: 25px;
  border: 0;
  color: #ffffff;
  font-weight: bold;
  text-align: center;
  background-color: #003e6f;
  background-image: linear-gradient(16deg, transparent, #0067c4);
  transition: background-color 0.5s;
  cursor: pointer;
}

.page__button:hover {
  background-color: #03BFEF;
}

.page__link {
  padding: 5px 0;
  color: #003e6f;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
}

.page__link:hover {
  border-bottom: 2px solid #003e6f;
}

.page__link:focus {
  outline: 0;
  color: #faba1c;
  border-bottom: 2px solid #faba1c;
}


/* PAGE-HEADER */

.page-header {
  padding: 20px 0;
  border-bottom: 1px solid #c5c5c5;
}

.page-header__link {
  display: block;
  width: 216px;
  margin: 0 auto;
}




/* BANNER */

.banner {
  min-height: 577px;
  padding-top: 90px;
  background-image: url("../img/banner-big.jpg");
  background-repeat:  no-repeat;
  background-position:  center center;
}

.banner__title {
  margin-top: 0;
  margin-bottom: 40px;
  font-size: 42px;
  font-weight: bold;
  line-height: 48px;
  text-transform: uppercase;
  text-align: center;
}

.banner__text {
  width: 560px;
  margin: 0 auto;
  font-size: 21px;
  font-weight: bold;
  line-height: 30px;
  text-align: center;
}


/* STEP-1 */

.step-1 {
  padding-top: 70px;
}

.step-1__block {
  width: 930px;
  margin: 0 auto;
}

.step-1__input:checked + .step-1__label {
  box-shadow: 0 0 0 4px #faba1c, 0 0 27px 0 rgba(0, 0, 0, 0.18) ;
}

.step-1__label {
  display: block;
  width: 400px;
  min-height: 512px;
  margin-bottom: 40px;
  border-top-left-radius: 50px;
  border-bottom-right-radius: 50px;
  box-shadow: 0 0 27px 0 rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.step-1__label:focus {
  /* box-shadow: 0 0 0 4px #003F72, 0 0 27px 0 rgba(0, 0, 0, 0.18); */
  outline: 0;
}

.step-1__input-img {
  width: 100%;
  margin-bottom: 35px;
  border-top-left-radius: 50px;
}

.step-1__input-title {
  display: block;
  font-size: 28px;
  font-weight: bold;
  line-height: 30px;
  text-align: center;
}

.step-1__input-text {
  display: block;
  padding: 20px 30px 30px 30px;
  font-size: 16px;
  line-height: 28px;
  text-align: center;
}


/* STEP-2 */

.step-2 {
  padding-top: 70px;
  background: #eeeeee;
}

.step-2__input:checked + .step-2__label {
  box-shadow:0 0 0 4px #faba1c, 0 0 27px 0 rgba(0, 0, 0, 0.18) ;
  background-color: #ffffff;
}

.step-2__label {
  width: 202px;
  min-height: 245px;
  margin-bottom: 40px;
  padding-top: 180px;
  border-top-left-radius: 30px;
  border-bottom-right-radius: 30px;
  background-repeat: no-repeat;
  background-position: center 25px;
  background-size: 150px;
  cursor: pointer;
  transition: background-color 0.1s;
}

.step-2__label:focus {
  background-color: #ffffff;
  outline: 0;
}

.step-2__label:hover {
  background-color: #eeeeee;
}

.step-2__label:nth-of-type(1) {
  background-image: url("../img/odnoskatnaya.svg");
}

.step-2__label:nth-of-type(2) {
  background-image: url("../img/dvuskatnaya.svg");
}

.step-2__label:nth-of-type(3) {
  background-image: url("../img/shatrovaya.svg");
}

.step-2__label:nth-of-type(4) {
  background-image: url("../img/valmovaya.svg");
}

.step-2__label:nth-of-type(5) {
  background-image: url("../img/mansardnaya.svg");
}

.step-2__input:nth-of-type(1) {
  background-image: url("../img/odnoskatnayaChosen.svg");
}

.step-2__input:nth-of-type(2) {
  background-image: url("../img/dvuskatnayaChosen.svg");
}

.step-2__input:nth-of-type(3) {
  background-image: url("../img/shatrovayaChosen.svg");
}

.step-2__input:nth-of-type(4) {
  background-image: url("../img/valmovayaChosen.svg");
}

.step-2__input:nth-of-type(5) {
  background-image: url("../img/mansardnayaChosen.svg");
}

.step-2__input:checked + .step-2__label:nth-of-type(1) {
  background-image: url("../img/odnoskatnayaChosen.svg");
}

.step-2__input:checked + .step-2__label:nth-of-type(2) {
  background-image: url("../img/dvuskatnayaChosen.svg");
}

.step-2__input:checked + .step-2__label:nth-of-type(3) {
  background-image: url("../img/shatrovayaChosen.svg");
}

.step-2__input:checked + .step-2__label:nth-of-type(4) {
  background-image: url("../img/valmovayaChosen.svg");
}

.step-2__input:checked + .step-2__label:nth-of-type(5) {
  background-image: url("../img/mansardnayaChosen.svg");
}

.step-2__input-title {
  display: block;
  font-size: 21px;
  font-weight: bold;
  line-height: 36px;
  text-align: center;
}


/* STEP-3 */

.step-3 {
  padding-top: 70px;
}

.step-3__form {
  position: relative;
  padding-top: 80px;
  padding-right: 0;
}

.step-3__field {
  justify-content: space-between;
  margin-bottom: 15px;
  padding-right: 44px;
}

.step-3__form-block {
  position: absolute;
  top: 0;
  left: 40px;
}

.step-3__fieldset {
  border: 0;
}

.step-3__label {
  margin-right: 40px;
  font-size: 21px;
  line-height: 30px;
  cursor: pointer;
}

.step-3__form-block-label {
  margin-right: 5px;
  padding: 20px;
  background-color: #dddddd;
  cursor: pointer;
}

.step-3__form-block-label:last-of-type {
  margin-right: 0;
}

.step-3__form-block-label:hover {
  background-color: #cccccc;
}

.step-3__form-block-input:checked + .step-3__form-block-label {
  background-color: #faba1c;
}

.step-3__label--radio {
  position: relative;
  padding-left: 40px;
}

.step-3__label--radio::before {
  position: absolute;
  top: 2px;
  left: 0;
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  border: 3px solid #003e6f;
  border-radius: 50%;
  cursor: pointer;
}

.step-3__label--radio::after {
  position: absolute;
  top: 10px;
  left: 8px;
  content: "";
  display: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #003e6f;
  cursor: pointer;
}

.step-3__input:checked + .step-3__label--radio::after {
  display: block;
}

.step-3__input:checked + .step-3__label--radio:focus::after {
  background-color: #003e6f;
}

.step-3__input:checked + .step-3__label--radio:focus::before {
  border-color: #003e6f;
}

.step-3__label--radio:focus {
  outline: 0;
}

.step-3__label--radio:focus::after {
  background-color: #faba1c;
}

.step-3__label--radio:focus::before {
  border-color: #faba1c;
}

.step-3__symbol--a {
  color: #006600;
}

.step-3__symbol--e {
  color: #b30000;
}

.step-3__symbol--c {
  color: #133bfa;
}

.step-3__symbol--h {
  color: #41529b;
}

.step-3__symbol--k {
  color: #854800;
}

.step-3__input {
  width: 90px;
  padding-left: 10px;
  border: 0;
  border-bottom: 4px solid #faba1c;
  font-size: 21px;
  text-align: center;
  transition: border 0.2s;
}

.step-3__input:focus {
  outline: 0;
  border-bottom: 4px solid #003e6f;
}

.step-3__img {
  display: block;
  margin: 0 auto;
  overflow: visible;
}

.scheme-line {
  fill: transparent;
  /* stroke-width: 0;
  stroke-miterlimit: 10; */
}

.scheme-line--gCount {
  fill: transparent;
  position: absolute;
  animation-name: bounce;
  animation-duration: 3s;
  animation-iteration-count: infinite;
}

@keyframes bounce {
  0% { transform: translateY(-10px); }
  50% { transform: translateY(10px); }
  100% { transform: translateY(-10px); }
}

.roof-type-field {
  justify-content: space-between;
}



/* CALCULATION */

.calculation {
  padding-top: 70px;
}

.calculation__button {
  display: block;
  width: 300px;
  margin: 0 auto;
  font-size: 28px;
  line-height: 30px;
  box-shadow: 0 0 27px 0 rgba(0, 0, 0, 0.18);
}


/* RESULT */

.result {
  padding: 70px 0;
}

.result__text {
  margin-bottom: 40px;
  font-size: 21px;
  line-height: 30px;
}

.result__num {
  color: #003f72;
  font-weight: bold;
}

.result__table {
  border-collapse: collapse;
  border: 2px solid #c6c6c6;
}

.result__table-row:not(:last-child):hover,
.result__table-row:not(:last-child):focus {
  outline: 0;
  background-color: #eee;
  cursor: pointer;
}

.result__table-header {
  padding: 10px 12px;
  border: 2px solid #c6c6c6;
  font-weight: bold;
}

.result__table-cell {
  padding: 10px 12px;
  border: 2px solid #c6c6c6;
}

.result__table-cell--sum {
  border: 0;
  font-weight: bold;
}

.result__table-cell--sum:nth-child(2) {
  text-align: right;
}

.result__table-cell:nth-child(3) {
  text-align: center;
}

.result__table-cell:nth-child(4) {
  text-align: right;
}

.result__block {
  position: relative;
  padding-bottom: 100px;
}

.result__info {
  margin-bottom: 30px;
  font-size: 16px;
  line-height: 30px;
}

.result__size {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.result__input:checked + .result__label {
  color: #ffffff;
  background-color: #003f72;
}

.result__label {
  min-width: 90px;
  margin-right: 20px;
  margin-bottom: 20px;
  padding: 5px 7px;
  border: 2px solid #003f72;
  font-size: 18px;
  font-weight: bold;
  line-height: 30px;
  text-align: center;
  cursor: pointer;
}

.result__label:focus {
  outline: 0;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5)
}

.result__colors {
  position: absolute;
  top: 120px;
  right: 45px;
}

.result__links {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
}

.result__item {
  list-style: none;
  margin-bottom: 15px;
}

.result__item:nth-child(2) {
  margin: 0 20px 15px 20px;
}

.result__button {
  position: absolute;
  bottom: 0;
  margin-top: auto;
  padding-right: 100px;
  font-size: 21px;
  line-height: 30px;
  text-decoration: none;
}

.result__button:before {
  position: absolute;
  content: "";
  right: 20px;
  top: calc(50% - 28px);
  display: block;
  width: 58px;
  height: 54px;
  background-image: url("../img/excel.png");
}

.result__button:focus {
  outline: 2px solid #faba1c;
}

.settings__table {
  margin: 0 20px;
  margin-bottom: 15px;
  border-collapse: collapse;
  border: 2px solid #eee;
  font-size: 15px;
}
.settings__table-title {
  font-size: 20px;
  padding: 15px;
  padding: 28px 0;
}
.settings__table--color {
  margin: 0;
  border-collapse: separate;
  border-spacing: 20px 0;
  border: 0;
}

.colors__list {
  flex-direction: column;
  align-items: flex-end;
  padding: 0;
  margin-bottom: 30px;
}

.colors__item {
  width: 93px;
  white-space: nowrap;
  text-align: center;
  line-height: 16px;
  position: relative;
  margin-bottom: 10px;
  padding: 10px;
  border: 2px solid #c6c6c6;
  list-style: none;
}

.colors__item:focus {
  outline: 0;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5)
}

.colors__item:before {
  position: absolute;
  content: '';
  top: 0;
  left: 110%;
  display: none;
  padding: 10px;
  border-radius: 5px 0 5px 0;
  color: #003f72;
  font-size: 12px;
  white-space: nowrap;
}

.colors__item:hover:before {
  display: block;
}

.colors__text {
  text-align: right;
  margin-top: 0;
  margin-bottom: 20px;
  color: #003f72;
  opacity: 0;
  transition: 0.2s;
}

.gutter:hover .colors__text {
  opacity: 1;
}

.gutter__photo-block {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: 10px solid #FAB834;
  background: white;
  overflow: hidden;
}

.gutter__photo {
  position: absolute;
  z-index: 2;
  max-width: 90%;
  max-height: 90%;
}

.gutter__size {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}

.gutter__photo-text {
  position: absolute;
  top: 105%;
  z-index: 1;
  max-width: 100%;
  margin-top: 5px;
  padding: 0 20px;
  color: #595959;
  text-align: center;
  font-weight: bold;
}

.settings__cell-title {
  padding: 0 15px;
  color: #ccc;
  text-align: right;
}
.settings__cell--yes:hover {
  cursor: pointer;
  text-decoration: underline;
}

.settings__cell--yes:active {
  cursor: pointer;
}

.settings__cell--color {
  width: 40px;
  height: 40px;
  border: 2px solid #eee;
  border-top-left-radius: 13px;
  border-bottom-right-radius: 13px;
  cursor: pointer;
}

.darkbrown {
  background-color: #422c15;
  color: #fff;
}

.darkbrown:before {
  content: 'Тёмно-коричневый';
}

.dark-chocolate {
  background-color: #4b1c00;
  color: #fff;
}

.dark-chocolate:before {
  content: 'Шоколадный';
}

.white {
  background-color: #ffffff;
}

.white:before {
  content: 'Белый';
}

.black {
  background-color: #221e1d;
  color: #fff;
}

.black:before {
  content: 'Чёрный';
}

.graphite {
  background-color: #3c4754;
  color: #fff;
}

.graphite:before {
  content: 'Графит';
}

.settings__size-cell {
  width: 45px;
  height: 45px;
  border: 2px solid #eee;
  background: #730012;
  color: #fff;
}

.active {
  border: 2px solid #faba1c;
  color: #faba1c;
}


/* PAGE-FOOTER */

.page-footer {
  padding-top: 22px;
  padding-bottom: 20px;
  border-top: 1px solid #c5c5c5;
}

.page-footer__text {
  color: #003f72;
  font-size: 18px;
  font-weight: bold;
  line-height: 30px;
}


/* MEDIA */

@media (max-width: 1200px) {
  .wrapper {
    width: calc(100% - 100px);
  }

  .page__half {
    width: 100%;
    padding: 0;
  }

  .page__link {
    font-size: 16px;
  }

  .step-1__block {
    flex-wrap: nowrap;
    width: 90%;
  }

  .step-1__label {
    min-height: 300px;
    margin: 0 20px;
    margin-bottom: 40px;
  }

  .step-2__label {
    width: 180px;
    background-size: 140px;
  }

  .step-3__field {
    padding: 0;
  }

  .step-3__label {
    font-size: 16px;
  }

  .step-3__input {
    width: 70px;
    padding: 0;
    font-size: 16px;
  }

  .step-3__form {
    width: 50%;
    padding-top: 80px;
  }

  .step-3__scheme {
    width: 50%;
  }

  .step-3__form-block {
    flex-wrap: nowrap;
    left: 0;
  }

  .step-3__form-block-label {
    padding: 10px;
  }

  .step-3__img--gutter {
    min-height: 600px;
  }

  .result__flexbox {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
  }

  .result__block {
    max-width: calc(100vw * 0.4);
    margin-left: 20px;
    padding-bottom: 0;
  }

  .result__table {
    margin-top: 49px;
  }

  .result__item:nth-child(2) {
    margin: 0 10px 5px 10px;
  }

  .result__button {
    width: 100%;
    padding-right: 50px;
    padding-left: 0;
    font-size: 16px;
    line-height: 20px;
  }

  .result__button::before {
    top: calc(50% - 14px);
    width: 29px;
    height: 27px;
    background-size: cover;
  }

  .gutter {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    max-width: none;
  }

  .gutter__photo-block {
    bottom: 0;
    left: 0;
    width: 50%;
    max-width: 520px;
    height: calc(70vw * 0.5);
    max-height: 340px;
  }

  .colors__list {
    justify-content: flex-start;
  }
}

@media (max-width: 800px) {

  .page__half {
    padding: 0;
  }

  .wrapper {
    width: 100%;
    padding: 0 20px;
  }

  .banner {
    min-height: 410px;
    background-size: auto 100%;
  }

  .step-1 {
    padding-top: 50px;
  }

  .step-1__block {
    width: 100%;
  }

  .step-1__label {
    margin: 0 10px;
    margin-bottom: 40px;
  }

  .step-1__input-img {
    margin-bottom: 20px;
  }

  .step-1__input-title {
    font-size: 24px;
  }

  .step-1__input-text {
    padding: 10px 30px 20px 30px;
    font-size: 16px;
  }

  .step-3__form-block {
    flex-wrap: nowrap;
    left: 0;
  }

  .step-3__form {
    padding-top: 80px;
  }

  .step-3__img--gutter {
    min-height: 500px;
    width: 58%;
  }

  .result__flexbox {
    flex-wrap: wrap
  }

  .result__block {
    width: 100%;
    max-width: none;
    margin-left: 0;
    padding-bottom: 70px;
  }

  .result__info {
    font-size: 16px;
    line-height: 24px;
  }

  .gutter__photo-text {
    top: 104%;
  }

  .colors__text {
    opacity: 1;
  }

}

@media (max-width: 600px) {
  .wrapper {
    width: 100%;
    padding: 0 10px;
  }

  .flexbox {
    justify-content: center;
  }

  .page__half {
    width: 100%;
    margin-bottom: 40px;
    padding: 0;
  }

  .page__title {
    margin-bottom: 25px;
    font-size: 24px;
  }

  .banner {
    min-height: 0;
    height: 400px;
  }

  .banner__title {
    font-size: 28px;
    line-height: 32px;
  }

  .banner__text {
    width: auto;
    font-size: 18px;
    line-height: 20px;
  }

  .step-1__block {
    flex-wrap: wrap;
    width: 100%;
  }

  .step-1__label {
    margin: 0;
    margin-bottom: 20px;
  }

  .step-1__input-img {
    margin-bottom: 20px;
  }

  .step-2__form {
    flex-wrap: wrap;
  }

  .step-3__form {
    padding-top: 60px;
  }

  .step-3__label {
    font-size: 16px;
    margin-right: 10px;
  }

  .step-3__label--radio:before {
    top: -3px;
  }

  .step-3__label--radio:after {
    top: 5px;
  }

  .step-3__field {
    padding-right: 0;
  }

  .step-3__input {
    width: 50px;
    padding-left: 0;
    border-bottom-width: 2px;
    font-size: 14px;
  }

  .step-3__input:focus {
    border-bottom-width: 2px;
  }

  .step-3__text {
    font-size: 14px;
  }

  .step-3__form-block {
    flex-wrap: nowrap;
    left: 0;
    padding: 0;
    font-size: 14px;
  }

  .step-3__form-block-label {
    padding: 10px;
  }

  .step-3__img--gutter {
    width: 100%;
    min-height: auto;
  }

  .result__block {
    width: 100%;
    max-width: none;
    margin-left: 0;
    padding-bottom: 100px;
  }

  .result__item:nth-child(2) {
    margin: 0 20px 15px 20px;
  }

  .result__flexbox {
    display: block;
  }

  .result__table {
    width: 100%;
  }

  .result__table-cell,
  .result__table-header {
    padding: 7px 5px;
    font-size: 14px;
  }

  .result__button {
    font-size: 16px;
    line-height: 20px;
  }

  .result__colors {
    position: static;
    width: 100%;
  }

  .gutter {
    display: block;
    padding-bottom: 0;
  }

  .gutter__photo-block {
    position: relative;
    width: 100%;
    height: 200px;
    max-width: 300px;
    margin: 0 auto;
  }

  .colors__list {
    flex-direction: row;
    justify-content: center;
  }

  .colors__item {
    margin: 0 5px 5px 0;
  }

  .colors__text {
    opacity: 1;
    font-size: 16px;
    text-align: center;
    color: #000;
    font-weight: bold;
  }

  .colors__text br {
    display: none;
  }
}



.banner,
.step-1,
.step-2,
.step-3 {
  display: none;
}

.result {
  padding: 0;
}

.result__title {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100px;
  margin: 20px 0;
  width: 68%;
  line-height: 36px;
}

.page__half:first-child {
  width: 69%;
  min-height: 500px;
}

.page__half:last-child {
  width: 30%;
}

.wrapper {
  width: 100%;
  padding: 0 20px;
}

html,
body {
  height: 100vh;
  overflow: hidden;
}

.result__block {
  padding: 0;
  margin: 0;
}

.step-1__block {
  width: auto;
  margin: 0;
}

.step-1__label {
  width: auto;
  min-height: 0;
  margin: 0;
  margin-bottom: 10px;
  border-radius: 0;
  padding: 12px 8px;
  box-shadow: none;
  border: 4px solid #faba1c;
  border-left: 0;
  border-right: 0;
}

.step-1__label:hover,
.step-1__label:focus {
  background: #f1f1f1;
}

.step-1__input-title {
  font-size: 16px;
  line-height: 16px;
}

.step-1__input:checked + .step-1__label {
  background: #faba1c;
  box-shadow: none;
}

.result__label {
  margin-right: 0;
  margin-bottom: 0;
}

.result__colors {
  top: auto;
  left: 20px;
  bottom: 0;
  right: auto;
}

.colors__list {
  margin-bottom: 10px;
}

.stal2 .stal2--h,
.pvc2 .pvc2--h,
.hidden .hidden-h {
  display: none;
}

.pvc object {
 padding: 0 20px;
}

.stal object {
  padding: 0 25px;
}
