/* reset */

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

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

.btn-reset:focus {
  outline: none;
}

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

h2, h3, p {
  margin: 0;
}

/* main-settings */

.container {
  max-width: 1920px;
  width: 100%;
  margin: 0 auto;
}

.main-container {
  padding: 0 75px;
}

.flex {
  display: flex;
}

:root {
  --font-family: "Montserrat", sans-serif;
  --second-family: "Muller", sans-serif;
  --color-btn: #f90;
  --color-btn-hover: #ffb84d;
  --color-btn-active:  #e1670e;
  --color-btn-black-hover: #666;;
  --color-btn-black-active: #000;
  --color-hover-border:  #f90;
  --color-active-border:  #e1670e;
}

section:focus-visible {
  outline: 3px solid var(--color-hover-border);
}

/* header */

.header-container {
  padding: 12px 75px;
  margin-bottom: 50px;
  align-items: center;
  border-radius: 0 0 32px 32px;
  box-shadow: 0 5px 40px 0 rgba(0, 0, 0, 0.1);
  background-color: #fff;
}

.header__logo-link {
  margin-right: auto;
}

.header__nav {
  margin-right: 85px;
}

.hamburger-menu {
  position: absolute;
  top: 30px;
  right: 20px;
  display: none;
}

.hamburger {
  width: 30px;
  height: 3px;
  background-color: black;
  border-radius: 2px;
}

.hamburger:not(:last-child) {
  margin-bottom: 5px;
}

.menu__search {
  display: none;
}

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

.menu__item__link {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 18px;
  transition: color 0.3s ease-in-out;
}

.menu__item__link::after {
  display: block;
  content: '';
  border-bottom: 2px solid var(--color-hover-border);
  opacity: 0;
  transition: opacity 0.3s;
}

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

.menu__item__link:focus {
  outline: 2px solid var(--color-hover-border);
}

.menu__item__link:active {
  color: #e1670e;
}

.menu__item__link:active::after {
  border-bottom: 2px solid var(--color-active-border);
  opacity: 1;
}

.header__search path{
  transition: stroke .3s ease-in-out;
}

.header__search {
  transition: stroke .3s ease-in-out;
}

.header__search:hover {
  stroke: var(--color-hover-border);
}

.header__search:hover path{
  stroke: var(--color-hover-border);
}

.header__search:focus {
  outline: 2px solid var(--color-hover-border);
}

.header__search:active{
  stroke: #000;
}

.header__search:active path{
  stroke: #000
}

/* hero */

.hero {
  margin-bottom: 50px;
  padding: 100px 80px;
  border-radius: 32px;
  background-image: url('../img/hero-img-2.jpg');
  background-repeat: no-repeat;
  background-size: cover;
}

.hero__title {
  max-width: 837px;
  margin-bottom: 24px;
  font-family: var(--font-family);
  line-height: 85px;
  font-weight: 800;
  font-size: 70px;
  color: #ffffff;
}

.hero__descr {
  max-width: 790px;
  margin-bottom: 90px;
  font-family: var(--font-family);
  line-height: 29px;
  font-weight: 700;
  font-size: 24px;
  color: #fff;
}

.hero__btn {
  padding: 25px 39px;
  border-radius: 16px;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 23px;
  text-align: center;
  color: #fff;
  background: var(--color-btn);
  transition: background-color .3s ease-in-out;
}

.hero__btn:hover {
  background-color: var(--color-btn-hover);
}

.hero__btn:focus {
  background-color: var(--color-btn-hover);
}

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

/* about-us */

.about-us {
  margin-bottom: 103px;
}

.about-us__title {
  margin-bottom: 20px;
  font-family: var(--font-family);
  line-height: 60px;
  font-weight: 400;
  font-size: 48px;
}

.about-us__descr {
  max-width: 1235px;
  margin-bottom: 50px;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 200%;
}

.about-us__achieves {
  --gap: 32px;
  --offset: 1;
  gap: var(--gap);
}

.big-card-achieve{
  height: 100%;
  width: 868px;
  min-width: 700px;
}

.big-card-achieve {
  --margin-right-text: 160px;
  padding-top: 426px;
  flex-direction: column;
  border-radius: 32px;
  background-image: url('../img/building.jpg');
  background-repeat: no-repeat;
  background-size: cover;
}

.big-card-achieve__info {
  padding: 50px;
  border-radius: 32px;
  background-color: rgba(0, 0, 0, 0.5);
}

.big-card-achieve__info__text {
  max-width: 433px;
  margin-right: auto;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 16px;
  line-height: 200%;
  color: #fff;
}

.big-card-achieve__info__btn {
  padding: 18px 35px;
  align-self: center;
  border: 3px solid #f90;
  border-radius: 16px;
  background-color: initial;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  color: #fff;
  transition: background-color .3s ease-in-out, border .3s ease-in-out;
}

.big-card-achieve__info__btn:hover {
  background-color: var(--color-btn);
}

.big-card-achieve__info__btn:focus {
  background-color: var(--color-btn);
}

.big-card-achieve__info__btn:active {
  background-color: var(--color-btn-active);
  border-color: var(--color-btn-active);
}

.cards-achieve {
  height: 100%;
  max-width: 870px;
}

.cards-achieve__item {
  padding: 65px 116px 65px 299px;
  border-radius: 32px;
  border: 1px solid #cacaca;
}

.cards-achieve__item:not(:last-child) {
  margin-bottom: var(--gap);
}

.cards-achieve__item__title {
  margin-bottom: 8px;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 24px;
  color: #000;
}

.cards-achieve__item__descr {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 200%;
  color: #000;
}

.cards-achieve__item_box {
  background-image: url('../img/achieve-box.svg');
  background-repeat: no-repeat;
  background-position: left 60px center;
}

.cards-achieve__item_setting {
  background-image: url('../img/achieve-setting.svg');
  background-repeat: no-repeat;
  background-position: left 60px center;
}

/* stages */

.stages {
  margin-bottom: 100px;
  --gap: 32px;
}

.stages__title {
  margin-bottom: 32px;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 48px;
}

.stages__info__descr {
  margin-right: 142px;
  max-width: calc(50% - 127px);
}

.stages__info__descr__title {
  margin-bottom: 8px;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 24px;
  line-height: 133%;
}

.stages__info__descr__text {
  margin-bottom: 18px;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 200%;
}

.stages__info__descr__btns__more {
  margin-right: 32px;
  padding: 20px 38px;
  border-radius: 16px;
  background: var(--color-btn);
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  color: #fff;
  transition: background-color .3s ease-in-out;
}

.stages__info__descr__btns__more:hover {
  background-color: var(--color-btn-hover);
}

.stages__info__descr__btns__more:focus {
  background-color: var(--color-btn-hover);
}

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

.stages__info__descr__btns__contract {
  padding: 20px 38px;
  border-radius: 16px;
  border: 1px solid #000;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  text-align: center;
  color: black;
  transition: background-color .3s ease-in-out, border .3s ease-in-out, color .3s ease-in-out;
}

.stages__info__descr__btns__contract:hover {
  background-color: var(--color-btn-black-hover);
  border-color: var(--color-btn-black-hover);
  color: #fff;
}

.stages__info__descr__btns__contract:focus {
  background-color: var(--color-btn-black-hover);
  border-color: var(--color-btn-black-hover);
  color: #fff;
}

.stages__info__descr__btns__contract:active {
  background-color: var(--color-btn-black-active);
  color: #fff;
}

.stages__image {
  width: calc(50% - 15px);
  margin-top: 10px;
  height: auto;
  border-radius: 32px;
  background-image: url('../img/stages-img.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/* questions */

.questions {
  margin-bottom: 100px;
  --gap: 32px;
  --offset: 2;
}

.questions__title {
  margin-bottom: 32px;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 48px;
}

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

.questions__list__item {
  width: calc((100% - (var(--gap) * var(--offset)) / (var(--offset) + 1)));
  padding: 65px 65px 65px 60px;
  border-radius: 32px;
  border: 1px solid #cacaca;
}

.questions__list__item__title {
  margin-bottom: 8px;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 24px;
  line-height: 30px;
}

.questions__list__item__text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 200%;
}

/* footer */

.footer-container {
  padding: 50px 75px;
  background-color: #000;
  align-items: center;
  justify-content: space-between;
}

.footer__links {
  width: 363px;
  flex-direction: column;
}

.footer__links__logo {
  margin-bottom: 15px;
}

.footer__links__nav {
  margin-bottom: 90px;
}

.footer-menu {
  flex-direction: column;
}

.footer-menu__item {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 18px;
  line-height: 200%;
  color: #cacaca;
}

.footer-menu__item__link {
  transition: color .3s ease-in-out;
}

.footer-menu__item__link:hover {
  color: var(--color-hover-border);
}

.footer-menu__item__link:focus {
  outline: 2px solid var(--color-hover-border);
}

.footer-menu__item__link:active {
  color: var(--color-active-border);
}

.footer__links__social {
  gap: 25px;
}

.footer__links__social__ok path{
  transition: fill .3s ease-in-out, outline .3s ease-in-out;
}

.footer__links__social__ok:hover path {
  fill: var(--color-hover-border)
}

.footer__links__social__ok:focus {
  outline: 2px solid var(--color-hover-border)
}

.footer__links__social__ok:active path {
  fill: var(--color-active-border)
}

.footer__links__social__vk path{
  transition: fill .3s ease-in-out, outline .3s ease-in-out;
}

.footer__links__social__vk:hover path {
  fill: var(--color-hover-border)
}

.footer__links__social__vk:focus {
  outline: 2px solid var(--color-hover-border)
}

.footer__links__social__vk:active path {
  fill: var(--color-active-border)
}



.footer__text {
  width: 363px;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 200%;
  color: #cacaca;
}

.footer__text_without-form {
  width: 70%;
  font-family: var(--font-family);
  align-self:flex-start;
  font-weight: 400;
  font-size: 16px;
  line-height: 200%;
  color: #cacaca;
}

/* Services */

.services__title {
  margin-bottom: 10px;
  text-align: center;
  font-family: var(--font-family);
  line-height: 60px;
  font-weight: 400;
  font-size: 48px;
}

.services__discr {
  margin-bottom: 50px;
  text-align: center;
  font-family: var(--font-family);
  line-height: 60px;
  font-weight: 400;
  font-size: 30px;
}

.services__list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 50px;
}

.services__item {
  position: relative;
  box-sizing: border-box;
  max-width: calc(50% - 15px);
  padding: 65px 116px 65px 299px;
  border-radius: 32px;
  outline: 1px solid #cacaca;
}

.services__item_without_img {
  padding-left: 116px;
}

.services__item:hover {
  outline: 3px solid #FF9900;
}

.services__item:active {
  background-color: #eee;
}

.services__item_choose {
  position: relative;
  box-sizing: border-box;
  max-width: calc(50% - 15px);
  padding: 65px 116px 65px 299px;
  border-radius: 32px;
  outline: 4px solid #FF9900;
}

.services__item__title {
  margin-bottom: 8px;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 24px;
  color: #000;
}

.services__item__descr {
  margin-bottom: 8px;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 200%;
  color: #000;
}

.services__item__price {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 24px;
  color: #000;
}

.service__img {
  position: absolute;
  left: 60px;
  max-width: 200px;
}

.mwservice {
  position: fixed;
  z-index: 1;
  padding: 50px;
  inset: 0;
  margin: auto;
  width: 70%;
  height: 60%;
  border-radius: 50px;
  display: flex;
  justify-content: center;
  background-color: #fff;
  outline: #f90 solid 4px;
  transition: all 1s ease-in-out;
  transform: translateX(0);
  gap: 50px;
}

.mwservice_clouse {
  transform: translateY(-1000px);
}

.loader-container {
  width: 100%;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 1;
}

.spinner {
  width: 64px;
  height: 64px;
  border: 8px solid;
  border-color: #3d5af1 transparent #3d5af1 transparent;
  border-radius: 50%;
  animation: spin-anim 1.2s linear infinite;
}

@keyframes spin-anim {
  0% {
      transform: rotate(0deg);
  }
  100% {
      transform: rotate(360deg);
  }
}