* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #F2F0EE;
  color: #000000;
  min-width: 375px;
  scroll-behavior: smooth;
  font-family: 'Manrope', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-top: 0;
}

ul {
  list-style-type: none;
}

a {
  text-decoration: none;
}

a:focus {
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
}

input,
textarea,
button,
select,
label {
  font-family: 'Manrope', sans-serif;
  border: none;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
}

.container {
  max-width: 1440px;
  width: 100%;
  padding: 0 50px;
  margin: 0 auto;
}

.hero {
  background: #000 url(../img/main-bg.jpg) no-repeat center / cover;
  padding: 20px 0;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.header__logo {
  color: #F2F0EE;
  font-size: 22px;
  font-style: normal;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: -0.66px;
  text-transform: uppercase;
}

.header__menu {
  color: #000;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 100%;
  padding: 10px 25px;
  border-radius: 41px;
  background: #F2F0EE;
}

.header__phone {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #F2F0EE;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.main {
  padding-top: 138px;
}

.main__title {
  color: #F2F0EE;
  font-size: 75px;
  font-style: normal;
  font-weight: 400;
  line-height: 110%;
  text-transform: uppercase;
  max-width: 590px;
  margin-bottom: 25px;
}

.main__sup {
  color: #F2F0EE;
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-style: italic;
  text-transform: initial;
  font-weight: 300;
  line-height: 100%;
  display: inline-block;
  vertical-align: top;
  padding-top: 14px;
}

.main__button {
  border-radius: 41px;
  background: #F2F0EE;
  color: #000;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 110%;
  display: flex;
  align-items: center;
  gap: 78px;
  max-width: 280px;
  padding: 15px 45px;
  margin-bottom: 129px;
}

.main__subtitle {
  color: #F2F0EE;
  font-size: 22px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
  margin-bottom: 25px;
  max-width: 532px;
}

.main__bottom {
  color: #F2F0EE;
  font-size: 18px;
  font-style: normal;
  font-weight: 300;
  line-height: 130%;
  margin: 0;
}

.portfolio {
  padding: 140px 0;
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  grid-column-gap: 15px;
}

.portfolio__text {
  grid-area: 1 / 1 / 2 / 2;
}

.portfolio__title {
  color: #000;
  font-size: 25px;
  font-style: normal;
  font-weight: 300;
  line-height: 110%;
  text-transform: uppercase;
  margin-bottom: 25px;
}

.portfolio__description {
  color: #000;
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
  max-width: 323px;
}

.portfolio__second {
  grid-area: 1 / 2 / 3 / 3;
  border: 1px solid #000;
  padding: 15px;
  display: flex;
  background: #fff url(../img/portfolio-1.jpg) no-repeat center / cover;
  flex-direction: column;
  justify-content: space-between;
  gap: 15px;
}

.portfolio__address {
  color: #fff;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  text-transform: uppercase;
  margin: 0;
}

.portfolio__date {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  color: #fff;
  font-size: 45px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%;
  text-transform: uppercase;
  margin: 0;
}

.portfolio__image {
  grid-area: 1 / 3 / 3 / 4;
  height: 100%;
  object-fit: cover;
}

.portfolio__link {
  grid-area: 2 / 1 / 3 / 2;
  align-self: end;
  color: #000;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 110%;  
  display: flex;
  align-items: center;
  gap: 10px;
}

.services {
  margin-bottom: 132px;
}

.services__top {
  display: grid;
  grid-template-columns: 280px minmax(300px, 882px);
  gap: 15px;
  justify-content: space-between;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(0,0,0,0.5);
}

.services__title {
  color: #000;
  font-size: 25px;
  font-style: normal;
  font-weight: 300;
  line-height: 110%;
  text-transform: uppercase;
  margin: 0;
}

.services__text {
  color: #000;
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
  max-width: 717px;
  margin: 0;
}

.services__item {
  display: grid;
  grid-template-columns: minmax(100px, 280px) minmax(100px, 418px) minmax(100px, 280px);
  gap: 15px;
  justify-content: space-between;
  padding: 25px 0;
  border-bottom: 1px solid rgba(0,0,0,0.5);
}

.services__caption {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #000;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 110%;
  text-transform: uppercase;
  margin-bottom: 55px;
}

.services__caption.mobile {
  display: none;
}

.services__point {
  color: rgba(0,0,0,0.5);
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-style: italic;
  font-weight: 300;
  line-height: 100%;
}

.services__description {
  color: #000;
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 130%;
  margin: 0;
}

.services__image {
  object-fit: cover;
}

.services__btn {
  align-self: end;
  border-radius: 41px;
  border: 1px solid #000;
  padding: 15px 45px;
  display: flex;
  align-items: center;
  gap: 78px;
  color: #000;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 110%;
}

.services__bottom {
  display: grid;
  grid-template-columns: 280px minmax(300px, 882px);
  gap: 15px;
  justify-content: space-between;
  padding-top: 40px;
}

.services__link {
  color: #000;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 110%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form {
  background: #000 url(../img/form-bg.jpg) no-repeat center / cover;
}


.form__container {
  border-left: 1px solid rgba(242, 240, 238, 0.50);
  border-right: 1px solid rgba(242, 240, 238, 0.50);
}

.form__wrapper {
  border-left: 1px solid rgba(242, 240, 238, 0.50);
  padding: 70px 25px;
  max-width: 916px;
  width: 100%;
  margin-left: auto;
}

.form__title {
  color: #F2F0EE;
  font-size: 45px;
  max-width: 726px;
  font-style: normal;
  font-weight: 400;
  line-height: 110%;  
  text-transform: uppercase;
  margin-bottom: 25px;
}

.form__subtitle {
  color: #FFF;
  font-size: 22px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
  margin-bottom: 25px;
  max-width: 452px;
}

.form__form {
  display: block;
  max-width: 520px;
  width: 100%;
}

.form__input {
  display: block;
  width: 100%;
  margin-bottom: 20px;
  border-radius: 41px;
  border: 1px solid #FFF;
  padding: 15px 25px;
  background: transparent;
  color: #FFF;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 110%;
}

.form__input::placeholder {
  color: rgba(255,255,255, 0.5);
}

.form__button {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: space-between;
  width: 100%;
  color: #000;
  font-size: 20px;
  font-style: normal;
  border-radius: 41px;
  background: #FFF;
  font-weight: 500;
  line-height: 110%;
  margin-bottom: 10px;
  padding: 15px 45px;
}

.form__politic {
  color: #FFF;
  font-size: 14px;
  font-style: normal;
  font-weight: 300;
  line-height: 130%;
  margin: 0;
}

.clients {
  padding: 140px 0;
}

.clients__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.clients__title {
  color: #000;
  font-size: 25px;
  font-style: normal;
  font-weight: 300;
  line-height: 110%;
  text-transform: uppercase;
  margin-bottom: 25px;
}

.clients__description {
  color: #000;
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
  margin: 0;
  max-width: 313px;
}

.clients__item {
  border: 1px solid rgba(0,0,0,0.5);
  height: 228px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.clients__item.empty {
  border: none;
}

.clients__placeholder {
  color: #000;
  font-size: 45px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%;
  text-transform: uppercase;
}

.license {
  margin-bottom: 140px;
}

.license__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.license__title {
  color: #000;
  font-size: 25px;
  font-style: normal;
  font-weight: 300;
  line-height: 110%;
  text-transform: uppercase;
  margin: 0;
}

.license__item {
  border: 1px solid rgba(0,0,0,0.5);
  height: 520px;
}

.footer {
  background: #262626;
}

.footer__wrap {
  text-align: center;
  margin-bottom: 139px;
}

.footer__logo {
  display: inline-block;
  margin-top: -5px;
  width: 100%;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(100px, 451px) minmax(100px, 302px) minmax(100px, 437px) auto;
  padding-bottom: 40px;
}

.footer__phone {
  display: block;
  color: #F2F0EE;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%;
  margin-bottom: 25px;
}

.footer__mail {
  display: block;
  color: #F2F0EE;
  font-family: Manrope;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%;
}

.footer__link {
  display: block;
  color: #F2F0EE;
  font-family: Manrope;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%;
}

.footer__link + .footer__link {
  margin-top: 25px;
}

.footer__socials {
  display: flex;
  align-items: center;
  gap: 34px;
}

.footer__bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(242, 240, 237, 0.5);
}

.footer__copyright {
  display: inline-block;
  margin: 0;
  color: rgba(242, 240, 237, 0.5);
  font-family: Manrope;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%;
  margin-right: 378px;
}

.footer__politic {
  color: rgba(242, 240, 237, 0.5);
  font-family: Manrope;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%;
}

.modal-bg {
  background: rgba(0,0,0, 0.5);
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0s, opacity 0.2s;
}

.modal-bg.active {
  transform: translateX(0);
  opacity: 1;
}

.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  max-width: 450px;
  z-index: 1001;
  width: 100%;
  background: #F2F0EE;
  padding: 26px 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 15px;
  align-items: flex-start;
  transform: translateX(100%);
  overflow-y: auto;
  transition: 0.3s;
}

.modal.active {
  transform: translateX(0);
}

.modal__close {
  color: rgba(0,0,0,0.5);
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 110%;
}

.modal__list {
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.modal__link {
  width: 100%;
  padding: 20px 0 10px;
  color: #000;
  font-size: 25px;
  font-style: normal;
  font-weight: 300;
  line-height: 110%;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.modal__link img {
  opacity: 0;
  transition: 0.3s;
}

.modal__link:hover img {
  opacity: 1;
}

.modal__phone {
  color: #000;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  display: flex;
  align-items: center;
  gap: 15px; 
  margin-bottom: 61px;
}

.modal__socials {
  display: flex;
  align-items: center;
  gap: 34px;
}

.modal__wrapper {
  align-self: flex-end;
}

.modal__logo {
  display: none;
  color: #000;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: -0.48px;
  text-transform: uppercase;
}

@media (max-width: 834px) {
  .container {
    padding: 0 20px;
  }

  .main {
    padding-top: 334px;
  }

  .main__button {
    margin-bottom: 327px;
  }

  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid-column-gap: 11px;
  }

  .portfolio__text {
    grid-area: 1 / 1 / 2 / 2;
  }
  .portfolio__second {
    grid-area: 1 / 2 / 3 / 3;
  }
  .portfolio__image {
    grid-area: 2 / 1 / 4 / 2;
  }
  .portfolio__link {
    grid-area: 3 / 2 / 4 / 3;
    justify-content: flex-end;
  }

  .portfolio__address {
    color: #fff;
  }

  .portfolio__date {
    color: #fff;
  }

  .portfolio__description {
    margin-bottom: 40px;
  }

  .portfolio {
    padding: 120px 0;
  }

  .services__top {
    grid-template-columns: 280px minmax(100px, 391px);
  }

  .services__item {
    grid-template-columns: 280px minmax(100px, 391px);
    grid-template-rows: auto auto;
    grid-row-gap: 25px;
  }

  .services__image {
    grid-area: 1 / 1 / 3 / 2;
    height: 100%;
    object-fit: cover;
  }

  .services__wrapper {
    grid-area: 1 / 2 / 2 / 3;
  }

  .services__btn {
    grid-area: 2 / 2 / 3 / 3;
    justify-content: space-between;
  }

  .services__bottom {
    grid-template-columns: 280px minmax(100px, 391px);
  }

  .form__wrapper {
    border-right: 1px solid rgba(242, 240, 238, 0.50);
  }

  .clients {
    padding: 130px 0;
  }

  .clients__grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px 11px;
  }

  .clients__item.empty {
    display: none;
  }

  .license {
    margin-bottom: 130px;
  }

  .license__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 11px;
  }

  .license__text {
    grid-column: span 2;
  }

  .footer__wrap {
    margin-bottom: 115px;
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-row-gap: 25px;
  }

  .footer__contacts {
    grid-area: 1 / 1 / 2 / 2;
  }
  .footer__list {
    grid-area: 1 / 2 / 2 / 3;
  }
  .footer__list.second {
    grid-area: 2 / 2 / 3 / 3;
  }
  .footer__socials {
    grid-area: 2 / 1 / 3 / 2;
  }

  .footer__logo {
    margin-top: -2px;
  }

  .footer__socials {
    align-items: flex-end;
  }

  .modal {
    padding: 29px 20px 40px;
  }
}

@media (max-width: 800px) {
  .footer__copyright {
    margin-right: 169px;
  }
}

@media (max-width: 660px) {
  .header__phone {
    display: none;
  }

  .main {
    padding-top: 176px;
  }

  .main__button {
    margin-bottom: 200px;
  }

  .main__title {
    font-size: 45px;
    line-height: 110%;
    max-width: 500px;
  }

  .main__sup {
    font-size: 14px;
    line-height: 100%;
    padding-top: 8px;
  }

  .portfolio__grid {
    grid-template-columns: 1fr;
    grid-template-rows: initial;
  }

  .portfolio__text {
    grid-area: initial;
  }

  .portfolio__second {
    grid-area: initial;
    height: 400px;
    margin-bottom: 20px;
  }

  .portfolio__image {
    grid-area: initial;
    width: 100%;
    margin-bottom: 20px;
  }

  .portfolio__link {
    grid-area: initial;
    justify-content: center;
    margin-top: 20px;
  }

  .portfolio__description {
    max-width: 100%;
  }

  .services__top {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .services__item {
    grid-template-columns: 1fr;
    grid-template-rows: initial;
  }

  .services__image {
    grid-area: initial;
    width: 100%;
  }

  .services__wrapper {
    grid-area: initial;
  }

  .services__btn {
    grid-area: initial;
  }

  .services__bottom {
    grid-template-columns: 1fr;
  }

  .services__link {
    justify-content: center;
  }

  .clients__text {
    grid-column: span 2;
  }

  .clients__description {
    max-width: 100%;
  }
}

@media (max-width: 500px) {
  .container {
    padding: 0 10px;
  }

  .header__logo {
    font-size: 16px;
    line-height: 100%;
    letter-spacing: -0.48px;
  }

  .header__menu {
    font-size: 16px;
    line-height: 100%;
    padding: 7px 15px;
  }

  .main {
    padding-top: 145px;
  }

  .main__title {
    margin-bottom: 15px;
  }

  .main__subtitle {
    font-size: 16px;
    line-height: 130%;
    margin-bottom: 20px;
    max-width: 280px;
  }

  .main__button {
    font-size: 16px;
    line-height: 110%;
    width: 100%;
    max-width: 100%;
    padding: 15px 30px;
    justify-content: space-between;
    margin-bottom: 125px;
  }

  .main__bottom {
    font-size: 14px;
    line-height: 130%; 
  }

  .hero {
    padding: 15px 0 20px;
  }

  .portfolio {
    padding: 100px 0;
  }

  .portfolio__title {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .portfolio__description {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .portfolio__second {
    min-height: 245px;
    height: auto;
    padding: 10px;
  }

  .portfolio__address {
    font-size: 16px;
    line-height: 120%;
  }

  .portfolio__date {
    font-size: 30px;
    line-height: 100%;
  }

  .portfolio__image {
    height: 245px;
    object-fit: cover;
  }

  .portfolio__link {
    margin-top: 0;
    gap: 10px;
    font-size: 16px;
    line-height: 110%;
  }

  .services__title {
    font-size: 18px;
    line-height: 110%;
  }

  .services__text {
    font-size: 14px;
  }

  .services__top {
    padding-bottom: 25px;
  }

  .services__caption {
    display: none;
  }

  .services__item {
    gap: 0;
  }

  .services__caption.mobile {
    display: flex;
    gap: 10px;
    font-size: 16px;
    line-height: 110%;
    margin-bottom: 15px;
  }

  .services__image {
    height: 225px;
    object-fit: cover;
    margin-bottom: 15px;
  }

  .services__description {
    font-size: 14px;
    line-height: 130%;
    margin-bottom: 15px;
  }

  .services__btn {
    padding: 15px 30px;
    font-size: 16px;
    line-height: 110%; 
  }

  .services__bottom {
    padding-top: 20px;
    gap: 0 15px;
  }

  .services__link {
    font-size: 16px;
    line-height: 110%;
    gap: 10px;
  }

  .services {
    margin-bottom: 100px;
  }

  .form__wrapper {
    border: none;
    padding: 50px 0;
  }

  .form__title {
    font-size: 30px;
    line-height: 110%;
    margin-bottom: 20px;
    max-width: 335px;
  }

  .form__subtitle {
    font-size: 14px;
    line-height: 130%; 
    margin-bottom: 25px;
  }

  .form__input {
    margin-bottom: 15px;
    font-size: 12px;
    line-height: 110%;
  }

  .form__button {
    padding: 15px 30px;
    font-size: 16px;
    line-height: 110%;
  }

  .form__politic {
    font-size: 12px;
  }

  .clients {
    padding: 100px 0;
  }

  .clients__title {
    font-size: 18px;
    line-height: 110%;
    margin-bottom: 20px;
  }

  .clients__description {
    font-size: 14px;
    padding-bottom: 10px;
  }

  .clients__grid {
    gap: 10px;
  }

  .clients__item {
    height: 100px;
  }

  .clients__placeholder {
    font-size: 20px;
    line-height: 100%;
  }

  .license {
    margin-bottom: 100px;
  }

  .license__title {
    font-size: 18px;
    line-height: 110%; 
  }

  .license__item {
    height: 225px;
  }

  .license__grid {
    gap: 20px 10px;
  }

  .footer__wrap {
    margin-bottom: 100px;
  }

  .footer__phone {
    font-size: 14px;
    line-height: 100%;
    margin-bottom: 15px;
  }

  .footer__mail {
    font-size: 14px;
    line-height: 100%;
  }

  .footer__socials {
    gap: 18px;
  }

  .footer__socials img {
    width: 21px;
  }

  .footer__link {
    font-size: 14px;
  }

  .footer__link + .footer__link {
    margin-top: 15px;
  }

  .footer__grid {
    grid-row-gap: 15px;
    padding-bottom: 25px;
  }

  .footer__bottom {
    padding: 16px 0 14px;
  }

  .footer__bottom .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .footer__copyright {
    margin-right: 0;
    font-size: 14px;
  }

  .footer__politic {
    font-size: 14px;
  }

  .modal__wrapper {
    align-self: stretch;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
  }

  .modal__logo {
    display: block;
  }

  .modal__close {
    font-size: 16px;
    line-height: 110%;
  }

  .modal {
    padding: 21px 10px 30px;
  }

  .modal__link {
    font-size: 20px;
  }

  .modal__phone {
    font-size: 16px;
    gap: 10px;
    margin-bottom: 30px;
  }

  .modal__phone img {
    width: 16px;
  }
}