@media screen and (min-width: 375px) {
  .facts-section-item {
    width: 320px;
    height: 320px;
  }
}

@media screen and (max-width: 743px) {
  .button-scroll {
    display: none;
  }
}

@media screen and (min-width: 744px) {
  .section {
    padding-left: 40px;
    padding-right: 40px;
  }

  .primary-section {
    background-image: url(./images/bg_tab.jpg);
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .secondary-section-header {
    padding-top: 60px;
    padding-bottom: 80px;
  }

  .facts-section-item {
    width: 442px;
    height: 442px;
    padding-top: 94px;
    justify-content: flex-start;
  }
  
  .facts-section-item:not(:last-child) {
    margin-bottom: 60px;
  }

  .facts-section-text {
    max-width: 292px;
    font-size: 20px;
    line-height: 30px;
    margin-bottom: 30px;
  }

  .facts-section-icon {
    width: 94px;
    height: 94px;
  }

  .text {
    font-size: 18px;
    line-height: 24px;
  }
  
  .img-container {
    margin: 30px 0 12px;
  }

  .image-flex {
    margin-left: -40px;
    margin-right: -40px;
    padding-left: 40px;
    padding-right: 40px;
  }

  footer {
    padding: 60px 40px;
  }

  .email-item {
    display: flex;
    flex-wrap: wrap;
  }

  .button-scroll {
    width: 70px;
    height: 70px;
    font-weight: 500;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: -1px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #292929;
    border: none;
    padding: 0;
    color: #ffffff;
    border-radius: 50%;
  }

  .button-scroll::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    left: 23px;
    background-image: url('./images/chevrons-up.svg');
    opacity: 0;
    transition: .2s ease-out;
  }

  .button-scroll:hover::before {
    opacity: 1;
  }

  .button-scroll:focus {
    background-image: linear-gradient(180deg, #410D83 2.08%, rgba(56, 13, 131, 0.85) 24.48%, rgba(114, 13, 131, 0.25) 81.77%, rgba(65, 13, 131, 0.15) 100%);
  }

  .text:not(:last-child) {
    margin-bottom: 16px;
  }
}

@media screen and (min-width: 834px) {
  .primary-section-flex {
    display: flex;
  }

  .primary-wrap {
    padding-left: 30px;
  }

  h1 {
    margin-bottom: 10px;
  }

  .description {
    font-size: 18px;
    line-height: 26px;
    margin-bottom: 0;
  }

  .contacts {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    flex-direction: row-reverse;
  }

  .socials-list {
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .email-item {
    margin-bottom: 0;
  }

  .projects {
    margin-top: 28px;
  }

  .project-second {
    margin-top: 40px;
  }

  .image-result-mob {
    display: none;
  }

  .socials-list {
    margin-bottom: 20px;
  }

  .secondary-section .project-place {
    font-size: 30px;
    line-height: 36px;
    margin-bottom: 40px;
  }

  .text-container {
    display: flex;
    gap: 40px;
    margin-bottom: 20px;
  }

  .text {
    width: 50%;
  }

  .text:not(:last-child) {
    margin-bottom: 0;
  }

  footer {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
  }

  .footer-list {
    margin-bottom: 0;
  }

  .footer-item:not(:last-child) {
    margin-bottom: 0;
  }
}

@media screen and (min-width: 1024px) {
  .primary-section {
    background-image: url('./images/bg_1440.jpg');
  }

  .secondary-section-header {
    display: flex;
    justify-content: space-between;
  }

  .secondary-section-contacts {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    align-self: flex-start;
    flex-wrap: wrap;
  }

  .heading-wrap {
    width: 100%;
    margin-bottom: 0;
  }

  .photo-wrap {
    width: 45%;
  }

  .image-flex,
  .image-container {
    margin-bottom: 40px;
  }

  .project-image {
    width: 280px;
    height: 565px;
  }

  .project-image:not(:last-child) {
    margin-right: 40px;
  }

  .project-list {
    margin-right: 20px;
  }

  .facts-section-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 40px;
  }

  .facts-section-item:not(:last-child) {
    margin-bottom: 0;
  }

  .facts-section-item {
    column-gap: 40px;
  }

  .secondary-section-heading {
    margin-bottom: 40px;
  }

  .secondary-list-section {
    margin-bottom: 120px;
  }

  .secondary-list {
    display: flex;
    column-gap: 94px;
  }

  .secondary-list.non-dots {
    margin-bottom: 80px;
  }

  .secondary-list-item:not(:last-child) {
    margin-bottom: 0;
  }

  .text-container.mb-120,
  .mb-120 {
    margin-bottom: 120px;
  }

  .text-container.mb-60 {
    margin-bottom: 60px;
  }

  .text-container.mb-90 {
    margin-bottom: 90px;
  }

  .third-heading {
    font-size: 30px;
    line-height: 36px;
    margin-bottom: 20px;
  }

  .fourth-heading {
    font-size: 25px;
    line-height: 30px;
    margin-bottom: 20px;
  }

  .subcaption {
    font-size: 25px;
    line-height: 30px;
    margin-bottom: 20px;
  }

  .socials-item:first-child  {
    margin-left: 50px;
  }

  .main-text.fw,
  .result-list-item::marker {
    font-size: 20px;
    line-height: 28px ;
  }

  .user-flow-wrap {
    margin-top: 60px;
    margin-bottom: 80px;
  }

  .user-flow-image { 
    width: 801px;
    height: 852px;
  }

  .before-after-image {
    display: block;
  }

  .image {
    display: none;
  }

  .image-result-desktop {
    display: block;
  }

  .finalized-section {
    margin-bottom: 120px;
  }

  .projects-images {
    display: grid;
    grid-template-columns: 2fr 2fr;
    column-gap: 32px;
    row-gap: 32px;
  }

  .projects-section {
    margin-bottom: 140px;
  }

  .projects-section-image{
    margin-bottom: 0;
  }

  .button-scroll {
    bottom: 110px;
  }

  .button-scroll:hover {
    cursor: pointer;
    background-image: linear-gradient(180deg, #410D83 2.08%, rgba(56, 13, 131, 0.85) 24.48%, rgba(114, 13, 131, 0.25) 81.77%, rgba(65, 13, 131, 0.15) 100%);
    background-color: #ffffff;
    transition: .2s ease;
    color: transparent;
  }
}

@media screen and (min-width: 1440px) {
  .section {
    padding-left: 80px;
    padding-right: 80px;
  }

  .primary-section {
    padding-top: 45px;
    padding-bottom: 120px;
  }

  h1 {
    font-size: 50px;
    line-height: 54px;
    margin-bottom: 20px;
  }

  .subheading {
    font-size: 40px;
    line-height: 48px;
  }

  .secondary-section {
    padding-top: 80px;
  }

  .project-section {
    padding-top: 80px;
    padding-bottom: 140px;
  }

  .primary-section-flex {
    margin-bottom: 80px;
  }

  .facts-section-list {
    column-gap: 60px;
  }

  .project-section:not(:last-child)::after {
    height: 80px;
    background-image: url('./images/narrow_bg.jpg');
  }

  .facts-section-item {
    column-gap: 60px;
  }

  .second-heading {
    font-size: 45px;
    line-height: 49px;
    margin-bottom: 16px;
  }

  .caption {
    font-size: 25px;
    line-height: 38px;
    margin-bottom: 40px;
  }

  .primary-wrap {
    padding-left: 60px;
  }

  .photo-wrap {
    max-width: 547px;
  }

  .img-container {
    width: 547px;
    height: 606px;
  }

  .projects {
    margin-top: 50px;
  }

  .project-item {
    font-size: 30px;
    line-height: 36px;
    margin-bottom: 0;
  }

  .subject {
    font-size: 30px;
    line-height: 38px;
    margin-bottom: 0;
    letter-spacing: -2px;
  }

  .project-place {
    letter-spacing: -2px;
  }

  .subject {
    width: 131px;
    flex-shrink: 0;
  }

  .project-first,
  .project-second {
    display: flex;
  }

  .project-wrap {
    flex-wrap: wrap;
    margin-left: 30px;
  }

  .text-container {
    margin-bottom: 24px;
  }

  .text {
    margin-bottom: 0;
  }

  .image-flex {
    padding-left: 80px;
    margin-left: -80px;
    margin-right: -80px;
  }

  footer {
    padding: 60px 80px;
    background-image: url('./images/footer_bg.jpg');
  }
}

@media screen and (min-width: 1920px) {
  .section {
    padding-left: 120px;
    padding-right: 120px;
  }

  .primary-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .project-section {
    padding-top: 120px;
    padding-bottom: 200px;
  }

  .section-uber {
    padding-bottom: 120px;
  }

  .img-container {
    margin: 42px 0 12px;
  }

  .primary-wrap {
    padding-left: 135px;
  }

  .contacts {
    flex-wrap: nowrap;
  }

  .text-container {
    gap: 75px;
  }

  .project-image:not(:last-child) {
    margin-right: 64px;
  }

  .image-flex {
    padding-left: 135px;
    margin-left: -135px;
    margin-right: -135px;
  }

  .subject {
    width: 105px;
  }

  .facts-section-item {
    column-gap: 110px;
  }

  .project-wrap {
    display: flex;
    justify-content: space-between;
    margin-left: 120px;
  }

  footer {
    padding: 60px 120px;
  }
}