h1,
h2,
h3,
h4,
h5,
figure,
p,
ol,
ul {
  margin: 0;
}

ol[role="list"],
ul[role="list"] {
  list-style: none;
  padding-inline: 0;
}

h1,
h2,
h3,
h4,
h5 {
  font-size: inherit;
  font-weight: inherit;
}

img {
  display: block;
  max-inline-size: 100%;
}

:root {
  --light-color: #f5f5f7;
  --dark-color: #221f20;
  --container-padding-inline: 13%;
  --footer-padding-inline: 10%;
}

html {
  font-family: "Inter", sans-serif;
  scroll-behavior: smooth;
}

.container {
  padding: 0 var(--container-padding-inline);
}

.title {
  color: var(--dark-color, #221f20);
  text-align: center;
  font-size: 40px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;


  span {
    position: relative;
  }

  span::after {
    content: "";
    display: block;
    width: 75px;
    height: 2px;
    position: absolute;
    right: 0;
    bottom: -1px;
    background-color: var(--dark-color, #221f20);
  }
}

.promo {
  min-height: 100vh;
  background: url(../img/main_bg.jpg) no-repeat center center/cover;
  padding-top: 75px;
  position: relative;
}

.promo__title {
  color: var(--light-color, #F5F5F7);
  font-size: 60px;
  font-weight: 400;
  line-height: normal;
  text-transform: uppercase;
}

.promo__subtitle {
  margin-top: 124px;
  color: var(--light-color, #F5F5F7);
  font-size: 32px;
  font-weight: 100;
  line-height: normal;
}

.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  padding: 3px 10px;
  width: 160px;
  min-height: 38px;
  border: 1px solid var(--light-color, #F5F5F7);
  background: rgba(217, 217, 217, 0.00);
  color: var(--light-color, #F5F5F7);
  font-size: 16px;
  font-weight: 100;
  line-height: normal;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease-out;
}

.btn:hover {
  box-shadow: 5px 5px 10px 0 rgba(255, 255, 255, 0.62);
  font-weight: 500;
}

.promo__address {
  position: relative;
  margin-top: 100px;
  color: var(--light-color, #F5F5F7);
  font-size: 16px;
  font-weight: 100;
  line-height: normal;

  address {
    font-style: normal;
  }

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

  &::before {
    position: absolute;
    left: -45px;
    top: -17px;
    display: block;
    content: "";
    width: 40px;
    height: 49px;
    background: url(../icons/arrow.svg) no-repeat center center/cover;
  }
}

.keywords {
  /* overflow: hidden; */
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  bottom: 0;
  padding: 0 10%;
  width: 100%;
  height: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.20) 100%);

  li {
    list-style-type: none;
    color: var(--light-color, #F5F5F7);
    font-size: 10px;
    font-weight: 100;
    line-height: normal;
  }
}

.about {
  background-color: var(--light-color, #F5F5F7);
  padding-top: 80px;
}

.about__title {
  color: var(--dark-color, #221f20);
  font-size: 12px;
  font-style: italic;
  font-weight: 400;
  line-height: normal;
}

.about__text {
  max-width: 1100px;
  margin-top: 20px;
  color: var(--dark-color, #221f20);
  font-size: 40px;
  font-weight: 400;
  line-height: normal;

  span {
    color: #A5A5A5;
  }
}

.services {
  display: flex;
  column-gap: 20px;
  margin-top: 80px;
}

.services__items {
  width: 50%;

  ul {
    margin-top: 20px;
    padding: 0;
  }

  li {
    position: relative;
    margin-top: 10px;
    list-style-type: none;
    color: var(--dark-color, #221f20);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;

    &:first-child::before {
      content: "";
      display: block;
      position: absolute;
      background: url(../icons/camera.svg) no-repeat center center/cover;
      width: 15px;
      height: 15px;
      top: 2px;
      left: -30px;
    }

    &:last-child::before {
      content: "";
      display: block;
      position: absolute;
      background: url(../icons/edit.svg) no-repeat center center/cover;
      width: 15px;
      height: 15px;
      top: 2px;
      left: -30px;
    }
  }
}

.services__text {
  width: 50%;
  color: var(--dark-color, #221f20);
  font-size: 20px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0.4px;
}

.services__items-subtitle {
  color: var(--dark-color, #221f20);
  font-size: 16px;
  font-style: italic;
  font-weight: 400;
  line-height: normal;
}

.works {
  background-color: var(--light-color, #F5F5F7);
  padding-top: 80px;
}

.works__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr), 1.5fr;
  gap: 50px 30px;
  margin-top: 50px;


  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 5px 5px 10px 0 rgba(0, 0, 0, 0.25);
  }
}

.inspiration {
  background-color: var(--light-color, #F5F5F7);
  padding-top: 80px;
}

.inspiration__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 30px;
  margin-top: 50px;


  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 5px 5px 10px 0 rgba(0, 0, 0, 0.25);
  }
}

#tenement {
  grid-row: 1/3;
  grid-column: 4/5;
  height: 100%;
}

#sky {
  grid-column: 2/4;
}

.customers {
  padding-top: 80px;
  background-color: var(--light-color, #F5F5F7);
  padding-bottom: 80px;
}

.customers__wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 50px;

  img {
    width: calc((100% - 90px) /4);
    box-shadow: 7px 7px 12px 0 rgba(0, 0, 0, 0.25);
  }

}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 88px var(--footer-padding-inline);
  background-color: #000000;
  color: var(--light-color, #F5F5F7);
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.footer__address {
  font-style: normal;
}

.footer__phone {
  color: var(--light-color, #F5F5F7);
  text-decoration: none;
}

.footer__social {
  padding-left: 0;
  display: flex;
  column-gap: 30px;
  list-style: none;

  li {
    border: 1px solid var(--Light, #F5F5F7);
    background: rgba(217, 217, 217, 0.00);
    width: 32px;
    height: 32px;

    a {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 100%;
      height: 100%;
      color: #fff;
      text-decoration: none;

      img {
        width: 22px;
        height: 22px;
      }

    }

  }

}

@media screen and (max-width: 1440px) {
  .keywords {
    padding: 0 20px;
  }

  .about__text {
    max-width: 100%;
  }

  .promo__title {}

  .promo__subtitle {
    margin-top: 80px;
  }

}

@media screen and (max-width: 1200px) {
  .inspiration__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 30px 20px;
  }

  #tenement {
    grid-row: 2/4;
    grid-column: 2/3;
  }

  #sky {
    grid-column: 1/3;
  }
}

@media screen and (max-width: 1024px) {
  .footer {
    font-size: 16px;
  }
}

@media screen and (max-width: 768px) {
  :root {
    --container-padding-inline: 6%;
    --footer-padding-inline: 6%;
  }

  .keywords {
    /* & li {
      display: none;
    }

    & li:nth-child(-n+9) {
      display: list-item;
    } */

    & li:nth-last-child(-n +6) {
      display: none;
    }
  }

  .promo {
    background-image: url(../img/tablet_bg.jpg)
  }

  .promo__title {
    font-size: 48px;
  }

  .promo__address::before {
    left: -40px;
  }

  .promo__address {
    margin-top: 80px;
  }

  .about__text {
    font-size: 24px;
  }

  .services {
    margin-top: 40px;
    flex-wrap: wrap;
    row-gap: 40px;
  }

  .services__items {
    width: 100%;
  }

  .services__text {
    width: 100%;
  }

  .services__items li:first-child::before {
    left: -25px;
  }

  .services__items li:last-child::before {
    left: -25px;
  }

  .title {
    font-size: 36px;
  }

  .works {
    padding-top: 50px;
  }

  .works__grid {
    margin-top: 40px;
    gap: 30px 20px;
  }

  .inspiration__grid {
    margin-top: 40px;
  }

  .customers__wrapper {
    margin-top: 40px;
    gap: 20px;

    img {
      width: calc((100% - 60px) / 4);
    }
  }

  .footer {
    padding: 30px var(--footer-padding-inline) 40px var(--footer-padding-inline);
    flex-direction: column;
    align-items: flex-start;
    row-gap: 30px;
  }

}

@media screen and (max-width: 750px) {
  .promo__address::before {
    display: none;
  }
}

@media screen and (max-width: 576px) {
  .promo {
    min-height: 500px;
    padding-top: 50px;
  }

  .promo__title {
    font-size: 26px;
  }

  .promo__subtitle {
    margin-top: 30px;
    font-size: 16px;
  }

  .btn {
    font-size: 14px;
    max-width: 120px;
    min-height: 30px;
  }

  .promo__address {
    margin-top: 233px;
  }

  .keywords {
    margin-top: 10px;

    & li:nth-last-child(-n +11) {
      display: none;
    }
  }

  :root {
    --container-padding-inline: 15px;
    --footer-padding-inline: 15px;
  }

  .works__grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr), 1.5fr;
    gap: 30px 0;
  }

  .title {
    font-size: 24px;
  }

  .inspiration__grid {
    grid-template-columns: 1fr;
    /* 2.1 и 0.5 значения были получены, если разделить 
              высоту этого изображения на высоту стандартного изображения */
    grid-template-rows: repeat(3, 1fr) 2.1fr 1fr 0.5fr;
    column-gap: 0px;
    row-gap: 20px;
  }

  #tenement {
    grid-row: auto;
    grid-column: auto;
  }

  #sky {
    grid-column: auto;
  }

  .customers__wrapper {
    margin-top: 30px;
    column-gap: 36px;
    row-gap: 20px;
    justify-content: space-between;

    img {
      width: calc((100% - 36px) / 2);
    }
  }


}

@media screen and (max-width: 375px) {
  .footer {
    align-items: center;
  }
}