html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

:root {
  --gap: 32px;
  --orange-color: #f90;
  --light-orange-color: #ffb84d;
  --dark-orange-color: #e1670e;
  --white-color: #fff;
  --light-gray-color: #cacaca;
  --gray-color: rgba(0, 0, 0, 0.5);
  --dark-gray-color: #666;
  --graphite-color: #414141;
  --black-color: #000;
}

@font-face {
  font-family: 'Montserrat';
  src: local('Montserrat-Regular'),
    url("../fonts/Montserrat-Regular.woff2") format("woff2"),
    url("../fonts/Montserrat-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: local('Montserrat-Medium'),
    url("../fonts/Montserrat-Medium.woff2") format("woff2"),
    url("../fonts/Montserrat-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: local('Montserrat-SemiBold'),
    url("../fonts/Montserrat-SemiBold.woff2") format("woff2"),
    url("../fonts/Montserrat-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: local('Montserrat-Bold'),
    url("../fonts/Montserrat-Bold.woff2") format("woff2"),
    url("../fonts/Montserrat-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: local('Montserrat-ExtraBold'),
    url("../fonts/Montserrat-ExtraBold.woff2") format("woff2"),
    url("../fonts/Montserrat-ExtraBold.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

.page {
  min-width: 320px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
}

/* glob */
.visually-hidden {
  position: absolute !important;
  clip: rect(1px 1px 1px 1px);
  /* IE6, IE7 */
  clip: rect(1px, 1px, 1px, 1px);
  padding: 0 !important;
  border: 0 !important;
  height: 1px !important;
  width: 1px !important;
  overflow: hidden;
}

.list-reset {
  margin: 0;
  padding: 0;
  list-style: none;
}

.btn-reset {
  padding: 0;
  border: none;
  background-color: transparent;
  cursor: pointer;
}

.flex {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.container {
  margin: 0 auto;
  padding: 0 50px;
  max-width: 1870px;
}

.btn {
  display: inline-block;
  padding: 19px 38px;
  font-weight: 700;
  font-size: 16px;
  line-height: normal;
  color: var(--white-color);
  border-radius: 16px;
  background-color: var(--orange-color);
  -webkit-transition: background-color 0.3s ease-in-out;
  -o-transition: background-color 0.3s ease-in-out;
  transition: background-color 0.3s ease-in-out;
}

.btn:focus-visible,
.btn:hover {
  outline: none;
  background-color: var(--light-orange-color);
}

.btn:active {
  background-color: var(--dark-orange-color);
}

.section-title {
  margin: 0;
  margin-bottom: 32px;
  font-weight: 400;
  font-size: 48px;
  line-height: normal;
  color: var(--black-color);
}

.section-offset {
  margin-bottom: 100px;
}

/* header */
.header {
  margin-bottom: 50px;
  padding: 13px 0 10px;
  border-radius: 0px 0px 32px 32px;
  -webkit-box-shadow: 0px 5px 40px 0px rgba(0, 0, 0, 0.1);
  box-shadow: 0px 5px 40px 0px rgba(0, 0, 0, 0.1);
}

.header__container {
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.header__logo {
  display: block;
  margin-right: auto;
}

.header__logo:focus-visible,
.footer__logo:focus-visible {
  outline-offset: 5px;
  outline: 2px solid var(--orange-color);
}

.header__nav {
  margin-right: 85px;
}

.nav__item:not(:last-child) {
  margin-right: 85px;
}

.nav__link {
  position: relative;
  font-weight: 600;
  font-size: 18px;
  line-height: normal;
  color: var(--black-color);
  -webkit-transition: color 0.3s ease-in-out;
  -o-transition: color 0.3s ease-in-out;
  transition: color 0.3s ease-in-out;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: var(--orange-color);
  opacity: 0;
  -webkit-transition: opacity 0.3s ease-in-out, background-color 0.3s ease-in-out;
  -o-transition: opacity 0.3s ease-in-out, background-color 0.3s ease-in-out;
  transition: opacity 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.nav__link:focus-visible {
  outline-offset: 5px;
  outline: 2px solid var(--orange-color);
}

.nav__link:hover::after {
  opacity: 1;
}

.nav__link:active {
  color: var(--dark-orange-color);
}

.nav__link:active::after {
  background-color: var(--dark-orange-color);
  opacity: 1;
}

.header__btn-search {
  width: 24px;
  height: 24px;
}

.header__btn-search rect {
  fill: var(--black-color);
  -webkit-transition: fill 0.3s ease-in-out;
  -o-transition: fill 0.3s ease-in-out;
  transition: fill 0.3s ease-in-out;
}

.header__btn-search path {
  stroke: var(--black-color);
  -webkit-transition: stroke 0.3s ease-in-out;
  -o-transition: stroke 0.3s ease-in-out;
  transition: stroke 0.3s ease-in-out;
}

.header__btn-search:focus-visible {
  outline-offset: 5px;
  outline: 2px solid var(--orange-color);
}

.header__btn-search:hover rect {
  fill: var(--orange-color);
}

.header__btn-search:hover path {
  stroke: var(--orange-color);
}

/* first-screen */
.first-screen {
  margin-bottom: 50px;
}

.first-screen__container {
  padding: 101px 80px;
  background-image: url('../img/first-screen-bg.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border-radius: 32px;
}

.first-screen__title {
  margin: 0;
  margin-bottom: 22px;
  max-width: 837px;
  font-weight: 800;
  font-size: 70px;
  line-height: normal;
  color: var(--white-color);
}

.first-screen__descr {
  margin: 0;
  margin-bottom: 90px;
  max-width: 790px;
  font-weight: 700;
  font-size: 24px;
  line-height: normal;
  color: var(--white-color);
}

.first-screen__btn-order {
  padding: 25px 39px;
  font-weight: 700;
  font-size: 23px;
}

/* about-us */
.about-us {
  margin-bottom: 102px;
}

.about-us__title {
  margin-bottom: 22px;
}

.about-us__descr {
  margin: 0;
  margin-bottom: 48px;
  max-width: 70%;
  color: #000;
  font-size: 16px;
  line-height: 32px;
}

.about-us__block {
  --offsets: 1;
  gap: var(--gap);
}

.about-us__left {
  -webkit-box-align: end;
  -ms-flex-align: end;
  align-items: flex-end;
  width: calc((100% - var(--offsets) * var(--gap)) / (var(--offsets) + 1));
  min-height: 622px;
  border-radius: 32px;
  background-image: url('../img/about-us-bg.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-color: #b08d7a;
}

.about-us__preview {
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 50px;
  background-color: var(--gray-color);
  border-radius: 32px;
}

.about-us__preview-text {
  margin: 0;
  width: 57%;
  font-weight: 700;
  font-size: 16px;
  line-height: 32px;
  color: var(--white-color);
}

.about-us__btn-more {
  padding: 17px 36px;
  background-color: transparent;
  border: 3px solid var(--orange-color);
  -webkit-transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
  -o-transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
  transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

.about-us__btn-more:focus-visible,
.about-us__btn-more:hover {
  background-color: var(--orange-color);
}

.about-us__btn-more:active {
  background-color: var(--dark-orange-color);
  border-color: var(--dark-orange-color);
}

.about-us__list {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: var(--gap);
  width: calc((100% - var(--offsets) * var(--gap)) / (var(--offsets) + 1));
}

.about-us__item {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  /* padding: 64px 117px 63px 34.2%; */
  padding: 7.3% 13% 7% 34.2%;
  border-radius: 32px;
  border: 1px solid var(--light-gray-color);
  background-repeat: no-repeat;
  background-position: left 8.6% center;
  background-size: 22%;
}

.about-us__item-1 {
  background-image: url('../img/about-us-card-1.svg');
}

.about-us__item-2 {
  background-image: url('../img/about-us-card-2.svg');
}

.about-us__caption {
  margin: 0;
  margin-bottom: 9px;
  font-weight: 700;
  font-size: 24px;
  line-height: normal;
  color: var(--black-color);
}

.about-us__text {
  margin: 0;
  font-size: 16px;
  line-height: 32px;
  color: var(--black-color);
}

/* stages */
.stages {
  margin-bottom: 101px;
}

.stages__left {
  margin-right: 7.8%;
  max-width: 43%;
}

.stages__heading {
  margin: 0;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  color: var(--black-color);
}

.stages__text {
  margin: 0;
  margin-bottom: 17px;
  font-size: 16px;
  line-height: 32px;
  color: var(--black-color);
}

.stages__btns {
  gap: var(--gap);
}

.stages__btn-more {
  padding: 21px 38px 20px;
}

.stages__btn-contract {
  padding: 20px 37px 19px;
  font-weight: 400;
  color: var(--black-color);
  background-color: var(--white-color);
  border: 1px solid var(--black-color);
  -webkit-transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
  -o-transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
  transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

.stages__btn-contract:focus-visible,
.stages__btn-contract:hover {
  color: var(--white-color);
  background-color: var(--dark-gray-color);
  border-color: var(--dark-gray-color);
  outline: none;
}

.stages__btn-contract:active {
  color: var(--white-color);
  background-color: var(--black-color);
}

.stages__right {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  background-image: url('../img/stages-bg.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-radius: 32px;
}

/* questions */
.questions__list {
  --offsets: 2;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: var(--gap);
}

.questions__item {
  /* padding: 64px 64px 62px 59px; */
  padding: 3.6% 3.7% 3.5% 3.3%;
  width: calc((100% - var(--offsets) * var(--gap)) / (var(--offsets) + 1));
  border-radius: 32px;
  border: 1px solid var(--light-gray-color);
}

.questions__caption {
  margin: 0;
  margin-bottom: 10px;
  max-width: 90%;
  font-weight: 700;
  font-size: 24px;
  line-height: normal;
  color: var(--black-color);
}

.questions__text {
  margin: 0;
  font-size: 16px;
  line-height: 32px;
  color: var(--black-color);
}

/* footer */
.footer {
  padding: 50px 0;
  background-color: var(--black-color);
}

.footer__container {
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

.footer__left {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  width: 20.7%;
}

.footer__logo {
  display: block;
  margin-bottom: 15px;
  max-width: -webkit-max-content;
  max-width: -moz-max-content;
  max-width: max-content;
}

.footer__nav {
  margin-bottom: auto;
}

.footer__item {
  max-width: -webkit-max-content;
  max-width: -moz-max-content;
  max-width: max-content;
}

.footer__link {
  font-weight: 600;
  font-size: 18px;
  line-height: 36px;
  color: var(--light-gray-color);
  -webkit-transition: color 0.3s ease-in-out;
  -o-transition: color 0.3s ease-in-out;
  transition: color 0.3s ease-in-out;
}

.footer__link:focus-visible {
  outline-offset: 5px;
  outline: 2px solid var(--orange-color);
}

.footer__link:hover {
  color: var(--orange-color);
}

.footer__link:active {
  color: var(--dark-orange-color);
}

.footer__social-list {
  justify-self: flex-end;
}

.footer__social-item:not(:last-child) {
  margin-right: 25px;
}

.footer__social-link {
  display: inline-block;
}

.footer__social-link svg {
  width: 60px;
  height: 60px;
  fill: var(--dark-gray-color);
  -webkit-transition: fill 0.3s ease-in-out;
  -o-transition: fill 0.3s ease-in-out;
  transition: fill 0.3s ease-in-out;
}

.footer__social-link:focus-visible {
  outline-offset: 5px;
  outline: 2px solid var(--orange-color);
}

.footer__social-link:hover svg {
  fill: var(--orange-color);
}

.footer__social-link:active svg {
  fill: var(--dark-orange-color);
}

.footer__center {
  width: 32.2%;
  min-width: 567px;
}

.footer__form-title {
  margin-bottom: 25px;
  color: var(--light-gray-color);
}

.form-label {
  width: 100%;
}

.footer__form-input,
.footer__form-textarea {
  display: block;
  padding: 17px 23px;
  margin-bottom: 25px;
  width: 100%;
  height: 60px;
  font-size: 16px;
  line-height: 32px;
  color: var(--white-color);
  border: none;
  border-radius: 16px;
  background-color: var(--graphite-color);
  -webkit-transition: background-color 0.3s ease-in-out;
  -o-transition: background-color 0.3s ease-in-out;
  transition: background-color 0.3s ease-in-out;
}

.footer__form-textarea {
  margin-bottom: 32px;
  height: 150px;
  resize: none;
}

.footer__form-input::-webkit-input-placeholder,
.footer__form-textarea::-webkit-input-placeholder {
  font-size: 16px;
  line-height: 31px;
  color: var(--light-gray-color);
}

.footer__form-input::-moz-placeholder,
.footer__form-textarea::-moz-placeholder {
  font-size: 16px;
  line-height: 31px;
  color: var(--light-gray-color);
}

.footer__form-input:-ms-input-placeholder,
.footer__form-textarea:-ms-input-placeholder {
  font-size: 16px;
  line-height: 31px;
  color: var(--light-gray-color);
}

.footer__form-input::-ms-input-placeholder,
.footer__form-textarea::-ms-input-placeholder {
  font-size: 16px;
  line-height: 31px;
  color: var(--light-gray-color);
}

.footer__form-input::placeholder,
.footer__form-textarea::placeholder {
  font-size: 16px;
  line-height: 31px;
  color: var(--light-gray-color);
}

.footer__form-input:focus-visible,
.footer__form-input:hover,
.footer__form-input:active,
.footer__form-textarea:focus-visible,
.footer__form-textarea:hover,
.footer__form-textarea:active {
  outline: none;
  background-color: var(--dark-gray-color)
}

.footer__form-btn {
  margin-right: 17px;
  margin-bottom: 3px;
  padding: 20px 52px;
}

.footer__form-check {
  display: inline-block;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: pointer;
}

.footer__form-check-input {
  position: absolute;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  z-index: -1;
}

.footer__form-check-text {
  position: relative;
  padding-left: 18px;
  font-size: 16px;
  line-height: 32px;
  color: var(--light-gray-color);
}

.footer__form-check-text::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 13px;
  height: 13px;
  border: 1px solid var(--light-gray-color);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}

.footer__form-check-text::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 13px;
  height: 13px;
  background-image: url('../img/tick.svg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  -webkit-transition: opacity 0.3s ease-in-out;
  -o-transition: opacity 0.3s ease-in-out;
  transition: opacity 0.3s ease-in-out;
}

.footer__form-check-input:checked+.footer__form-check-text::after {
  opacity: 1;
}

.footer__form-check-input:focus-visible+.footer__form-check-text {
  outline-offset: 5px;
  outline: 2px solid var(--orange-color);
}

.footer__descr {
  -ms-flex-item-align: center;
  -ms-grid-row-align: center;
  align-self: center;
  margin: 0;
  width: 20.5%;
  font-size: 16px;
  line-height: 32px;
  color: var(--light-gray-color);
}
