.page-template-contact {
  main {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .top-section {
    padding: 80px 128px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: 100%;
  }

  .top-section__info-container {
    display: flex;
    flex-direction: column;
    max-width: 1184px;
    width: 100%;
  }

  .top-section__info {
    width: 50%;
    z-index: 1;
  }

  .top-section__info-title {
    display: flex;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--blue-gray);

    h1 {
      font-family: "Poppins", serif;
      font-weight: 600;
      font-size: 38px;
      color: var(--dark-80);
    }
  }

  .top-section__info-descrition {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 25.6px;
    margin-top: 24px;
    color: var(--dark-100);
    position: relative;

    &::after {
      content: "";
      width: 64px;
      height: 1px;
      background-color: var(--green-primary);
      position: absolute;
      top: calc(100% + 24px);
      left: 0;
    }
  }

  .top-section__contacts {
    margin-top: 80px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    z-index: 1;
  }

  .contacts__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-block: 14px;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;

    span {
      font-weight: 500;
      font-size: 16px;
      color: var(--dark-100);
    }
  }

  .contacts__line {
    min-width: 64px;
    width: 64px;
    height: 1px;
    background-color: var(--dark-100);
  }

  .top-section__offices {
    h3 {
      font-family: "Inter", sans-serif;
      font-weight: 600;
      font-size: 24px;
      color: var(--dark-100);
    }
  }

  .offices {
    margin-top: 64px;
  }
}

.offices {
  display: flex;
  align-items: baseline;
  gap: 30px;
}

.offices__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-block: 14px;
  font-family: "Inter", sans-serif;
}

.offices__item-title {
  display: flex;
  align-items: center;
  gap: 8px;

  h4 {
    font-weight: 500;
    font-size: 16px;
    color: var(--dark-100);
  }

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

.offices__item-description {
  font-weight: 400;
  font-size: 14px;
  color: var(--dark-50);
}

.offices__line {
  align-self: center;
  min-width: 64px;
  width: 64px;
  height: 1px;
  background-color: var(--dark-100);
}

@media (max-width: 1280px) {
  .page-template-contact {
    .top-section {
      padding: 56px 48px 0;
    }

    .top-section__contacts {
      gap: 24px;
    }

    .contacts__line {
      display: none;
    }
  }

  .offices__line {
    display: none;
  }
}

@media (max-width: 768px) {
  .page-template-contact {
    .top-section {
      gap: 24px;
    }

    .top-section__info {
      width: 100%;
    }

    .top-section__info-title {
      h1 {
        font-size: 32px;
      }
    }

    .top-section__contacts {
      flex-direction: column;
      align-items: baseline;
      gap: 0;
    }

    .offices {
      margin-top: 32px;
    }
  }

  .offices {
    flex-direction: column;
    align-items: baseline;
    gap: 12px;
  }

  .offices__item {
    padding-block: 7px;
  }

  .offices__line {
    display: none;
  }
}

@media (max-width: 560px) {
  .page-template-contact {
    .top-section {
      padding: 35px 16px 0;
    }
  }
}
